From 4046dd82290aec8bd93be9aeb6651c19948ff886 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 30 Sep 2019 18:43:28 +0000 Subject: [PATCH] These actually use float as input. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4261 --- src/gui/sdlmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index b0635487..ad43f2d0 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -733,7 +733,7 @@ dosurface: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, texsize, texsize, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, (const GLvoid*)emptytex); delete [] emptytex; - glClearColor (0.0, 0.0, 0.0, 1.0); + glClearColor (0.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); SDL_GL_SwapBuffers(); glClear(GL_COLOR_BUFFER_BIT); @@ -1006,7 +1006,7 @@ void GFX_EndUpdate( const Bit16u *changedLines ) { case SCREEN_OPENGL: // Clear drawing area. Some drivers (on Linux) have more than 2 buffers and the screen might // be dirty because of other programs. - glClearColor (0.0, 0.0, 0.0, 1.0); + glClearColor (0.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); if (sdl.opengl.pixel_buffer_object) { glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);