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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user