diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 6884029766..0b5c59a78d 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -3101,7 +3101,7 @@ Bitu GFX_GetRGB(uint8_t red, uint8_t green, uint8_t blue) { #if C_OPENGL case SCREEN_OPENGL: -# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX) /* macOS Intel builds use a weird RGBA order (alpha in the low 8 bits) */ +# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX) && !defined(C_SDL2) /* macOS Intel builds use a weird RGBA order (alpha in the low 8 bits) */ //USE BGRA return (((unsigned long)blue << 24ul) | ((unsigned long)green << 16ul) | ((unsigned long)red << 8ul)) | (255ul << 0ul); # else