From 66c4818e8dc7b2a71a9d05456a77e811a1a30697 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 23 Mar 2019 17:16:42 -0700 Subject: Binding null sampler handler when no sampler is assigned to texture SRV and no static sampler is set in GL backend --- Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') 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. -- cgit v1.2.3