GL_CLAMP_VERTEX_COLOR and GL_CLAMP_FRAGMENT_COLOR deprecated in GL core profile according to OpenGL 4.5 specification.

This commit is contained in:
DCFennell 2019-09-25 12:16:51 -05:00 committed by Robert Osfield
parent 6776cc2c63
commit 987521ba9c

View File

@ -49,7 +49,9 @@ void ClampColor::apply(State& state) const
return; return;
} }
#if !defined(OSG_GL3_AVAILABLE)
extensions->glClampColor(GL_CLAMP_VERTEX_COLOR, _clampVertexColor); extensions->glClampColor(GL_CLAMP_VERTEX_COLOR, _clampVertexColor);
extensions->glClampColor(GL_CLAMP_FRAGMENT_COLOR, _clampFragmentColor); extensions->glClampColor(GL_CLAMP_FRAGMENT_COLOR, _clampFragmentColor);
#endif
extensions->glClampColor(GL_CLAMP_READ_COLOR, _clampReadColor); extensions->glClampColor(GL_CLAMP_READ_COLOR, _clampReadColor);
} }