iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
authorAlex Szpakowski <slime73@gmail.com>
Sat, 02 Jul 2016 13:38:31 -0300
changeset 10190 a6ad6813b17b
parent 10189 4844b48eb17b
child 10191 4c5c73f91e49
iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!) Fixes bug #3378.
src/video/uikit/SDL_uikitopenglview.m
--- a/src/video/uikit/SDL_uikitopenglview.m	Tue Jun 28 21:15:16 2016 +0200
+++ b/src/video/uikit/SDL_uikitopenglview.m	Sat Jul 02 13:38:31 2016 -0300
@@ -239,7 +239,7 @@
 
     if (msaaRenderbuffer != 0) {
         glBindRenderbuffer(GL_RENDERBUFFER, msaaRenderbuffer);
-        glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, GL_RGBA8, backingWidth, backingHeight);
+        glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, colorBufferFormat, backingWidth, backingHeight);
     }
 
     if (depthRenderbuffer != 0) {