Browse Source

iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)

Fixes bug #3378.
Alex Szpakowski 8 years ago
parent
commit
d0bd0e4855
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/uikit/SDL_uikitopenglview.m

+ 1 - 1
src/video/uikit/SDL_uikitopenglview.m

@@ -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) {