From 2758330973052253b1cc7ced7ffeaacc4f4a6d1e Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 20 Feb 2013 13:58:56 +0400 Subject: [PATCH] 0023756: VBO rendering problem (1) Fixed asymmetric VBO unbind call in OpenGl_Text::drawText(). --- src/OpenGl/OpenGl_Text.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_Text.cxx b/src/OpenGl/OpenGl_Text.cxx index 27b1871e3b..a75be7b250 100644 --- a/src/OpenGl/OpenGl_Text.cxx +++ b/src/OpenGl/OpenGl_Text.cxx @@ -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); } } -- 2.39.5