https://git.reactos.org/?p=reactos.git;a=commitdiff;h=834394abd9008a0ff53fb…
commit 834394abd9008a0ff53fb04359746d4b3200512b
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Mon Feb 22 10:45:33 2021 -0600
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Feb 22 17:45:33 2021 +0100
[OPENGL32] Fix Red and Green Color Swap (#3478)
CORE-16221
---
dll/opengl/opengl32/swimpl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/opengl/opengl32/swimpl.c b/dll/opengl/opengl32/swimpl.c
index 7f2808d1b0e..ec008b54e16 100644
--- a/dll/opengl/opengl32/swimpl.c
+++ b/dll/opengl/opengl32/swimpl.c
@@ -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;
\
}
\
}
\