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