summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
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.