mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[0.4.13][OPENGL32] Fix Red and Green Color Swap (#3478) CORE-16221
Fixes CORE-16221 "Shock-4Way3D (Virtual Desktops) - wrong background color" It regressed by 0.4.12-dev-389-g5f2bebf7a5
Fix picked from commit 0.4.15-dev-2085-g834394abd9
This commit is contained in:
parent
1e875d617e
commit
3e581f1c05
|
@ -1280,7 +1280,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; \
|
||||
} \
|
||||
}
|
||||
|
@ -1333,7 +1333,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; \
|
||||
} \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue