1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OpenGL: Avoid enabling GL_TEXTURE_2D in core profile contexts

This commit is contained in:
reuk 2023-03-06 11:40:35 +00:00
parent 505285bb22
commit af2a4a7e2a
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
6 changed files with 54 additions and 32 deletions

View file

@ -841,7 +841,9 @@ public:
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glActiveTexture (GL_TEXTURE0);
glEnable (GL_TEXTURE_2D);
if (! openGLContext.isCoreProfile())
glEnable (GL_TEXTURE_2D);
glViewport (0, 0,
roundToInt (desktopScale * (float) bounds.getWidth()),