Browse Source

iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer.

Alex Szpakowski 7 năm trước cách đây
mục cha
commit
e2ad654f2e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video/uikit/SDL_uikitopenglview.m

+ 1 - 1
src/video/uikit/SDL_uikitopenglview.m

@@ -101,7 +101,7 @@
                 SDL_SetError("sRGB drawables are not supported.");
                 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 */
             colorFormat = kEAGLColorFormatRGBA8;
             colorBufferFormat = GL_RGBA8;