From 3552c1f01996e795782b25f5606ee599dada13a9 Mon Sep 17 00:00:00 2001 From: Carlos Aragones Date: Fri, 18 Sep 2020 17:24:47 +0200 Subject: [PATCH] Fix Windows texture order color --- src/gl/MiniFB_GL.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/MiniFB_GL.c b/src/gl/MiniFB_GL.c index 1456a5d..b12dc64 100644 --- a/src/gl/MiniFB_GL.c +++ b/src/gl/MiniFB_GL.c @@ -216,12 +216,12 @@ redraw_GL(SWindowData *window_data, const void *pixels) { #if defined(_WIN32) || defined(WIN32) SWindowData_Win *window_data_ex = (SWindowData_Win *) window_data->specific; - GLenum format = GL_RGBA; + GLenum format = BGRA; #elif defined(linux) SWindowData_X11 *window_data_ex = (SWindowData_X11 *) window_data->specific; - GLenum format = GL_BGRA; // for some reason the colors are inverted on X11 + GLenum format = BGRA; #endif