[OPENGL32] Fix Red and Green Color Swap (#3478)

CORE-16221
This commit is contained in:
Doug Lyons 2021-02-22 10:45:33 -06:00 committed by GitHub
parent 950f78635a
commit 834394abd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1241,7 +1241,7 @@ static void read_color_span_##__bpp(GLcontext* ctx,
{ \
Buffer -= __pixel_size; \
UNPACK_COLOR_##__bpp(GET_PIXEL_##__bpp((__type*)Buffer), \
&blue[n], &green[n], &red[n]); \
&red[n], &green[n], &blue[n]); \
alpha[n] = 0; \
} \
}
@ -1294,7 +1294,7 @@ static void read_color_pixels_##__bpp(GLcontext* ctx,
BYTE *Buffer = fb->BackBuffer + y[n] * WIDTH_BYTES_ALIGN32(fb->width, __bpp) \
+ x[n] * __pixel_size; \
UNPACK_COLOR_##__bpp(GET_PIXEL_##__bpp((__type*)Buffer), \
&blue[n], &green[n], &red[n]); \
&red[n], &green[n], &blue[n]); \
alpha[n] = 0; \
} \
} \