summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-24 00:16:42 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-24 00:16:42 +0000
commit66c4818e8dc7b2a71a9d05456a77e811a1a30697 (patch)
treeb3e546865bdd68b58df1e02da03d6c71d4523636 /Graphics/GraphicsEngineOpenGL
parentImproved shader resource layout error reporting (diff)
downloadDiligentCore-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.cpp4
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.