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:
parent
505285bb22
commit
af2a4a7e2a
6 changed files with 54 additions and 32 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue