diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-11-09 20:48:49 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-11-09 20:48:49 +0000 |
| commit | 4657c47c66b5556dd95388a7b13d1abb593e1314 (patch) | |
| tree | 774b55b425847b63367c98bf616809d5da0bbcdc /Graphics/GraphicsEngineOpenGL | |
| parent | Updated method comments in OpenGL backend (diff) | |
| download | DiligentCore-4657c47c66b5556dd95388a7b13d1abb593e1314.tar.gz DiligentCore-4657c47c66b5556dd95388a7b13d1abb593e1314.zip | |
Allowed swap chains without the depth buffer
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/GLContextWindows.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextWindows.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextWindows.cpp index af4305c7..a1b9a79a 100644 --- a/Graphics/GraphicsEngineOpenGL/src/GLContextWindows.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/GLContextWindows.cpp @@ -124,6 +124,11 @@ namespace Diligent auto DepthFmt = pSCDesc->DepthBufferFormat; switch(DepthFmt) { + case TEX_FORMAT_UNKNOWN: + pfd.cDepthBits = 0; + pfd.cStencilBits = 0; + break; + case TEX_FORMAT_D32_FLOAT_S8X24_UINT: pfd.cDepthBits = 32; pfd.cStencilBits = 8; |
