Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iOS: Don't ignore the requested alpha bit size when determining wheth…
…er to use an RGBA8 backbuffer.
  • Loading branch information
slime73 committed Oct 14, 2018
1 parent cd63709 commit e2ad654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitopenglview.m
Expand Up @@ -101,7 +101,7 @@ - (instancetype)initWithFrame:(CGRect)frame
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;
Expand Down

0 comments on commit e2ad654

Please sign in to comment.