1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0026424: Visualization, TKOpenGl - fix text rendering in core profile

OpenGl_Context::init() - fix condition on initializing alien OpenGL context within core profile.
OpenGl_Font::renderGlyph() - use GL_RED data format in core profile.
OpenGl_Text::render() - do not use GL_ALPHA_TEST in core profile.

Test-case for issue #26424
This commit is contained in:
kgv
2015-07-20 20:58:55 +03:00
committed by bugmaster
parent c8bf1eb747
commit c6ad5e5f39
4 changed files with 62 additions and 12 deletions

View File

@@ -1040,7 +1040,7 @@ void OpenGl_Context::init (const Standard_Boolean theIsCoreProfile)
isCoreProfile = (theIsCoreProfile == Standard_True);
// detect Core profile
if (isCoreProfile)
if (!isCoreProfile)
{
GLint aProfile = 0;
::glGetIntegerv (GL_CONTEXT_PROFILE_MASK, &aProfile);