1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023756: VBO rendering problem (1)

Fixed asymmetric VBO unbind call in OpenGl_Text::drawText().
This commit is contained in:
kgv
2013-02-20 13:58:56 +04:00
committed by san
parent 6598416b22
commit 2758330973

View 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);
}
}