diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 00:16:42 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 00:16:42 +0000 |
| commit | 66c4818e8dc7b2a71a9d05456a77e811a1a30697 (patch) | |
| tree | b3e546865bdd68b58df1e02da03d6c71d4523636 /Graphics/GraphicsEngineOpenGL | |
| parent | Improved shader resource layout error reporting (diff) | |
| download | DiligentCore-66c4818e8dc7b2a71a9d05456a77e811a1a30697.tar.gz DiligentCore-66c4818e8dc7b2a71a9d05456a77e811a1a30697.zip | |
Binding null sampler handler when no sampler is assigned to texture SRV and no static sampler is set in GL backend
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 22823f51..4e5d4362 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -486,6 +486,10 @@ namespace Diligent { m_ContextState.BindSampler(TextureIndex, pSamplerGL->GetHandle()); } + else + { + m_ContextState.BindSampler(TextureIndex, GLObjectWrappers::GLSamplerObj(false)); + } } // Texture is now bound to texture slot TextureIndex. |
