X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_Context.cxx;h=7336c22b2c32396703934d1a275e282e62f98d3f;hb=c6ad5e5f39b987a2df08d2e738bb9dd527aa0247;hpb=c8bf1eb7470b8d78ecb19bb65c9e327c3b11230d diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index f4f92b28c0..7336c22b2c 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -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);