summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-18 14:54:27 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-18 14:54:27 +0000
commitdd7351be3d8f6f160c50466e6ae628346c4979a0 (patch)
treefcbd97618fafc995bb871fcfb2c67b2e3aadfeeb /Graphics/GraphicsEngineOpenGL
parentCouple more readme updates (diff)
downloadDiligentCore-dd7351be3d8f6f160c50466e6ae628346c4979a0.tar.gz
DiligentCore-dd7351be3d8f6f160c50466e6ae628346c4979a0.zip
Moved NumDeferredContexts parameter from factory functions to EngineCreateInfo (fixed https://github.com/DiligentGraphics/DiligentCore/issues/76)
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp b/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
index 18f08312..c44021d6 100644
--- a/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/EngineFactoryOpenGL.cpp
@@ -112,6 +112,11 @@ void EngineFactoryOpenGLImpl::CreateDeviceAndSwapChainGL(const EngineGLCreateInf
if( !ppDevice || !ppImmediateContext || !ppSwapChain )
return;
+ if (EngineCI.NumDeferredContexts > 0)
+ {
+ LOG_WARNING_MESSAGE("OpenGL back-end does not support deferred contexts");
+ }
+
*ppDevice = nullptr;
*ppImmediateContext = nullptr;
*ppSwapChain = nullptr;
@@ -181,6 +186,11 @@ void EngineFactoryOpenGLImpl::AttachToActiveGLContext(const EngineGLCreateInfo&
if( !ppDevice || !ppImmediateContext )
return;
+ if (EngineCI.NumDeferredContexts > 0)
+ {
+ LOG_WARNING_MESSAGE("OpenGL back-end does not support deferred contexts");
+ }
+
*ppDevice = nullptr;
*ppImmediateContext = nullptr;