diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-07 19:12:18 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-07 19:12:18 +0000 |
| commit | bb5f09fa8caa3a6314da5fa5cb743e35778ed7f6 (patch) | |
| tree | 66c666bf5ba50725595cd93fb1ce6579dc4c97ef /Graphics/GraphicsEngineOpenGL | |
| parent | Fixed minor issue in readme (diff) | |
| download | DiligentCore-bb5f09fa8caa3a6314da5fa5cb743e35778ed7f6.tar.gz DiligentCore-bb5f09fa8caa3a6314da5fa5cb743e35778ed7f6.zip | |
Added DRAW_FLAG_VERIFY_DRAW_ATTRIBS, DRAW_FLAG_VERIFY_RENDER_TARGETS, and DRAW_FLAG_VERIFY_ALL flags (updated API Version to 240022)
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 4e5d4362..713be7b1 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -667,8 +667,11 @@ namespace Diligent void DeviceContextGLImpl::Draw(DrawAttribs &drawAttribs) { #ifdef DEVELOPMENT - if (!DvpVerifyDrawArguments(drawAttribs)) + if ((drawAttribs.Flags & DRAW_FLAG_VERIFY_DRAW_ATTRIBS) != 0 && !DvpVerifyDrawArguments(drawAttribs)) return; + + if ((drawAttribs.Flags & DRAW_FLAG_VERIFY_RENDER_TARGETS) != 0) + DvpVerifyRenderTargets(); #endif auto* pRenderDeviceGL = m_pDevice.RawPtr<RenderDeviceGLImpl>(); |
