From f805382a83e31cd06bf08e4ff2b109ebb15dc426 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 27 Mar 2014 09:52:42 +0000 Subject: [PATCH] Fix for iOS openGL framebuffers. --- modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.cpp b/modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.cpp index c2c45e8158..de78486f13 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.cpp @@ -53,7 +53,7 @@ public: glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); JUCE_CHECK_OPENGL_ERROR - glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0); + glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0); JUCE_CHECK_OPENGL_ERROR context.extensions.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureID, 0);