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

Fixes bug #3378.
This commit is contained in:
Alex Szpakowski 2016-07-02 13:38:31 -03:00
parent b524657118
commit d0bd0e4855

View File

@ -239,7 +239,7 @@
if (msaaRenderbuffer != 0) { if (msaaRenderbuffer != 0) {
glBindRenderbuffer(GL_RENDERBUFFER, msaaRenderbuffer); glBindRenderbuffer(GL_RENDERBUFFER, msaaRenderbuffer);
glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, GL_RGBA8, backingWidth, backingHeight); glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples, colorBufferFormat, backingWidth, backingHeight);
} }
if (depthRenderbuffer != 0) { if (depthRenderbuffer != 0) {