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 10190a6ad6813b17b
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
     1.1 --- a/src/video/uikit/SDL_uikitopenglview.m	Tue Jun 28 21:15:16 2016 +0200
     1.2 +++ b/src/video/uikit/SDL_uikitopenglview.m	Sat Jul 02 13:38:31 2016 -0300
     1.3 @@ -239,7 +239,7 @@
     1.4  
     1.5      if (msaaRenderbuffer != 0) {
     1.6          glBindRenderbuffer(GL_RENDERBUFFER, msaaRenderbuffer);
     1.7 -        glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, GL_RGBA8, backingWidth, backingHeight);
     1.8 +        glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, colorBufferFormat, backingWidth, backingHeight);
     1.9      }
    1.10  
    1.11      if (depthRenderbuffer != 0) {