iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer.
authorAlex Szpakowski <slime73@gmail.com>
Sun, 14 Oct 2018 17:26:10 -0300
changeset 12326f8309eaee217
parent 12323 43cae18a1a34
child 12327 bec6af34f781
iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer.
src/video/uikit/SDL_uikitopenglview.m
     1.1 --- a/src/video/uikit/SDL_uikitopenglview.m	Sat Oct 13 17:18:59 2018 +0100
     1.2 +++ b/src/video/uikit/SDL_uikitopenglview.m	Sun Oct 14 17:26:10 2018 -0300
     1.3 @@ -101,7 +101,7 @@
     1.4                  SDL_SetError("sRGB drawables are not supported.");
     1.5                  return nil;
     1.6              }
     1.7 -        } else if (rBits >= 8 || gBits >= 8 || bBits >= 8) {
     1.8 +        } else if (rBits >= 8 || gBits >= 8 || bBits >= 8 || aBits > 0) {
     1.9              /* if user specifically requests rbg888 or some color format higher than 16bpp */
    1.10              colorFormat = kEAGLColorFormatRGBA8;
    1.11              colorBufferFormat = GL_RGBA8;