mirror of https://github.com/encounter/SDL.git
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:
parent
b524657118
commit
d0bd0e4855
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue