]> OCCT Git - occt.git/commitdiff
0023756: VBO rendering problem (1)
authorkgv <kgv@opencascade.com>
Wed, 20 Feb 2013 09:58:56 +0000 (13:58 +0400)
committersan <san@opencascade.com>
Fri, 22 Feb 2013 10:50:02 +0000 (14:50 +0400)
Fixed asymmetric VBO unbind call in OpenGl_Text::drawText().

src/OpenGl/OpenGl_Text.cxx

index 27b1871e3b4980722b18ffc94c8138011eed9055..a75be7b250e2517c811615bc457582e4a58c963d 100644 (file)
@@ -505,7 +505,7 @@ void OpenGl_Text::drawText (const Handle(OpenGl_PrinterContext)& thePrintCtx,
       glDrawArrays (GL_TRIANGLES, 0, GLsizei(aVerts->GetElemsNb()));
 
       glBindTexture (GL_TEXTURE_2D, 0);
-      aTCrds->UnbindFixed (theCtx, GL_VERTEX_ARRAY);
+      aTCrds->UnbindFixed (theCtx, GL_TEXTURE_COORD_ARRAY);
       aVerts->UnbindFixed (theCtx, GL_VERTEX_ARRAY);
     }
   }