From: kgv Date: Wed, 20 Feb 2013 09:58:56 +0000 (+0400) Subject: 0023756: VBO rendering problem (1) X-Git-Tag: V6_6_0_beta~65 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2758330973052253b1cc7ced7ffeaacc4f4a6d1e;p=occt.git 0023756: VBO rendering problem (1) Fixed asymmetric VBO unbind call in OpenGl_Text::drawText(). --- 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); } }