From 9da488b14c435d2acbab81299da71241104dd379 Mon Sep 17 00:00:00 2001 From: Safety0ff Date: Sun, 28 Feb 2010 04:06:42 +0000 Subject: [PATCH] Update to r9629: Use floats constants instead of ubytes to save on the conversion. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10046 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/ivis_opengl/piematrix.c | 2 +- src/display3d.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ivis_opengl/piematrix.c b/lib/ivis_opengl/piematrix.c index d8409cfe7..64e27c0a2 100644 --- a/lib/ivis_opengl/piematrix.c +++ b/lib/ivis_opengl/piematrix.c @@ -322,7 +322,7 @@ void pie_TranslateTextureEnd(void) void pie_Begin3DScene(void) { pie_SetTexturePage(TEXPAGE_FONT); - glColor3ub(0xFF,0xFF,0xFF); // Reset Color to white + glColor3f( 1.0f, 1.0f, 1.0f); // Reset Color to white glDepthRange(0.1, 1); glEnable(GL_CULL_FACE); drawing_interface = false; diff --git a/src/display3d.c b/src/display3d.c index bd6bd3673..a61c28a1c 100644 --- a/src/display3d.c +++ b/src/display3d.c @@ -3315,7 +3315,7 @@ static void drawDroidSelections( void ) } // Reset color to white so that features textures are rendered as expected - glColor3ub(0xFF,0xFF,0xFF); + glColor3f( 1.0f, 1.0f, 1.0f); for(psFeature = apsFeatureLists[0]; psFeature; psFeature = psFeature->psNext) {