1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-16 10:54:53 +03:00

0031088: Visualization - GL_INVALID_ENUM while dumping view within OpenGL 1.1

OpenGl_Sampler::resetGlobalTextureParams() - added missing version check before disabling GL_POINT_SPRITE.
This commit is contained in:
kgv 2019-10-20 14:13:46 +03:00 committed by apn
parent 8445efca81
commit 97e0059b05

View File

@ -418,7 +418,8 @@ void OpenGl_Sampler::resetGlobalTextureParams (const Handle(OpenGl_Context)& the
{
theCtx->core11fwd->glDisable (GL_TEXTURE_GEN_S);
theCtx->core11fwd->glDisable (GL_TEXTURE_GEN_T);
if (theParams->GenMode() == Graphic3d_TOTM_SPRITE)
if (theParams->GenMode() == Graphic3d_TOTM_SPRITE
&& theCtx->core20fwd != NULL)
{
theCtx->core11fwd->glDisable (GL_POINT_SPRITE);
}