diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-18 14:54:27 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-18 14:54:27 +0000 |
| commit | dd7351be3d8f6f160c50466e6ae628346c4979a0 (patch) | |
| tree | fcbd97618fafc995bb871fcfb2c67b2e3aadfeeb /Graphics/GraphicsEngineOpenGL | |
| parent | Couple more readme updates (diff) | |
| download | DiligentCore-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.cpp | 10 |
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; |
