mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer.
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
SDL_SetError("sRGB drawables are not supported.");
|
SDL_SetError("sRGB drawables are not supported.");
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
} else if (rBits >= 8 || gBits >= 8 || bBits >= 8) {
|
} else if (rBits >= 8 || gBits >= 8 || bBits >= 8 || aBits > 0) {
|
||||||
/* if user specifically requests rbg888 or some color format higher than 16bpp */
|
/* if user specifically requests rbg888 or some color format higher than 16bpp */
|
||||||
colorFormat = kEAGLColorFormatRGBA8;
|
colorFormat = kEAGLColorFormatRGBA8;
|
||||||
colorBufferFormat = GL_RGBA8;
|
colorBufferFormat = GL_RGBA8;
|
||||||
|
Reference in New Issue
Block a user