0030374: Visualization, TKOpenGl - activate texture unit Graphic3d_TextureUnit_1...
authorkgv <kgv@opencascade.com>
Wed, 14 Nov 2018 12:15:04 +0000 (15:15 +0300)
committerapn <apn@opencascade.com>
Thu, 15 Nov 2018 14:34:44 +0000 (17:34 +0300)
src/OpenGl/OpenGl_LayerList.cxx

index 43e9eda..9e81278 100644 (file)
@@ -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())