summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp b/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
index c5544ce3..14fbd670 100644
--- a/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
@@ -109,12 +109,12 @@ void EngineFactoryOpenGLImpl::CreateDeviceAndSwapChainGL(const EngineGLCreateInf
const SwapChainDesc& SCDesc,
ISwapChain** ppSwapChain)
{
- if (EngineCI.APIVersion != DILIGENT_API_VERSION)
- LOG_ERROR_AND_THROW("Diligent Engine runtime (", EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")");
-
if (EngineCI.DebugMessageCallback != nullptr)
SetDebugMessageCallback(EngineCI.DebugMessageCallback);
+ if (EngineCI.APIVersion != DILIGENT_API_VERSION)
+ LOG_ERROR_AND_THROW("Diligent Engine runtime (", EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")");
+
VERIFY(ppDevice && ppImmediateContext && ppSwapChain, "Null pointer provided");
if (!ppDevice || !ppImmediateContext || !ppSwapChain)
return;
@@ -189,12 +189,12 @@ void EngineFactoryOpenGLImpl::AttachToActiveGLContext(const EngineGLCreateInfo&
IRenderDevice** ppDevice,
IDeviceContext** ppImmediateContext)
{
- if (EngineCI.APIVersion != DILIGENT_API_VERSION)
- LOG_ERROR_AND_THROW("Diligent Engine runtime (", EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")");
-
if (EngineCI.DebugMessageCallback != nullptr)
SetDebugMessageCallback(EngineCI.DebugMessageCallback);
+ if (EngineCI.APIVersion != DILIGENT_API_VERSION)
+ LOG_ERROR_AND_THROW("Diligent Engine runtime (", EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")");
+
VERIFY(ppDevice && ppImmediateContext, "Null pointer provided");
if (!ppDevice || !ppImmediateContext)
return;