From db5f4c8c20b36b2fdc6257104096e021b56d6145 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 26 Dec 2012 23:48:33 +0100 Subject: [PATCH] fix byte order in osd rasterfont --- Source/Plugins/Plugin_VideoOGL/Src/RasterFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/RasterFont.cpp b/Source/Plugins/Plugin_VideoOGL/Src/RasterFont.cpp index 3fbe18f7fd..f1cd9fd674 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/RasterFont.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/RasterFont.cpp @@ -270,7 +270,7 @@ void RasterFont::printMultilineText(const char *text, double start_x, double sta glUseProgram(shader_program); if(color != cached_color) { - glUniform4f(uniform_color_id, ((color>>0)&0xff)/255.f,((color>>8)&0xff)/255.f,((color>>16)&0xff)/255.f,((color>>24)&0xff)/255.f); + glUniform4f(uniform_color_id, ((color>>16)&0xff)/255.f,((color>>8)&0xff)/255.f,((color>>0)&0xff)/255.f,((color>>24)&0xff)/255.f); cached_color = color; }