From 4135ea374b37577694e2fe1b1346523d9255158c Mon Sep 17 00:00:00 2001 From: Arisotura Date: Mon, 25 May 2020 18:38:10 +0200 Subject: [PATCH] fix colors --- src/GPU_OpenGL_shaders.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GPU_OpenGL_shaders.h b/src/GPU_OpenGL_shaders.h index ec975edb..20ac7673 100644 --- a/src/GPU_OpenGL_shaders.h +++ b/src/GPU_OpenGL_shaders.h @@ -155,7 +155,7 @@ void main() // TODO: filters - oColor = vec4(vec3(pixel.rgb) / 255.0, 1.0); + oColor = vec4(vec3(pixel.bgr) / 255.0, 1.0); } )"; @@ -310,7 +310,7 @@ void main() // TODO: filters - oColor = vec4(vec3(pixel.rgb) / 255.0, 1.0); + oColor = vec4(vec3(pixel.bgr) / 255.0, 1.0); } )"; @@ -855,7 +855,7 @@ void main() pixel.rgb <<= 2; pixel.rgb |= (pixel.rgb >> 6); - FragColor = vec4(vec3(pixel.rgb) / 255.0, 1.0); + FragColor = vec4(vec3(pixel.bgr) / 255.0, 1.0); } )";