From ce1c28b8b47e0f055703370949864ed00516a57b Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 14 Nov 2018 15:15:04 +0300 Subject: [PATCH] 0030374: Visualization, TKOpenGl - activate texture unit Graphic3d_TextureUnit_1 after OpenGl_LayerList::renderTransparent() --- src/OpenGl/OpenGl_LayerList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_LayerList.cxx b/src/OpenGl/OpenGl_LayerList.cxx index 43e9edad0f..9e812784e8 100644 --- a/src/OpenGl/OpenGl_LayerList.cxx +++ b/src/OpenGl/OpenGl_LayerList.cxx @@ -792,8 +792,8 @@ void OpenGl_LayerList::renderTransparent (const Handle(OpenGl_Workspace)& theW // Unbind OpenGL texture objects and shader program. aVerts->UnbindVertexAttrib (aCtx, Graphic3d_TOA_POS); - theOitAccumFbo->ColorTexture (0)->Unbind (aCtx, Graphic3d_TextureUnit_0); theOitAccumFbo->ColorTexture (1)->Unbind (aCtx, Graphic3d_TextureUnit_1); + theOitAccumFbo->ColorTexture (0)->Unbind (aCtx, Graphic3d_TextureUnit_0); aCtx->BindProgram (NULL); if (!aTextureBack.IsNull())