1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
JUCE/modules/juce_opengl/opengl
reuk a3f81eb2fb
OpenGL: Correctly restore blend mode when nested context goes out-of-scope
Fixes an issue where primitives such as text could end up with sharp
edges when creating temporary contexts:

    void paint (Graphics& g)
    {
        g.fillAll (Colours::white);
        const auto preferredType = g.getInternalContext().getPreferredImageTypeForTemporaryImages();
        Image img (Image::ARGB, getWidth(), getHeight(), false, *preferredType);
        {
            Graphics g2 (img);
        }
        g.setColour (Colours::black);
        g.setFont (32);
        g.drawText ("test", getLocalBounds(), Justification::centred);
    }
2025-11-14 13:36:03 +00:00
..
juce_gl.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_gl.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_gles2.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_gles2.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_khrplatform.h OpenGL: Update compatibility headers 2024-01-16 15:34:10 +00:00
juce_OpenGLContext.cpp Fix crash after OpenGL::detach in the presence of buffered child components 2025-10-28 15:33:13 +01:00
juce_OpenGLContext.h Docs: Replace doxygen preprocessor conditionals with @cond and @endconds 2025-07-21 18:11:43 +02:00
juce_OpenGLFrameBuffer.cpp OpenGLFrameBuffer: Add a row order parameter for reading and writing pixels 2025-07-10 16:16:12 +01:00
juce_OpenGLFrameBuffer.h OpenGLFrameBuffer: Add a row order parameter for reading and writing pixels 2025-07-10 16:16:12 +01:00
juce_OpenGLGraphicsContext.cpp OpenGL: Correctly restore blend mode when nested context goes out-of-scope 2025-11-14 13:36:03 +00:00
juce_OpenGLGraphicsContext.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLHelpers.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLHelpers.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLImage.cpp OpenGLFrameBuffer: Add a row order parameter for reading and writing pixels 2025-07-10 16:16:12 +01:00
juce_OpenGLImage.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLPixelFormat.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLPixelFormat.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLRenderer.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLShaderProgram.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLShaderProgram.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_OpenGLTexture.cpp OpenGLTexture: Respect pixelStride when loading Image to texture 2024-12-13 14:42:26 +00:00
juce_OpenGLTexture.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_wgl.h Update licensing information 2024-04-16 11:39:35 +01:00