Re: [Super-tux-devel] Clear screen bug in OpenGL mode
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2004-03-17 22:29:53
|
On Wed, Mar 17, 2004 at 10:26:21PM +0000, Ricardo Cruz wrote: > > Hey there, > > In the OpenGL mode, the screen is not being corrected cleared, the code is > the following: > glClearColor(r/256, g/256, b/256, 1.0); > glClear(GL_COLOR_BUFFER_BIT); Hum... maybe 'promote' r g and b to float during the division, like so? r/256.0 or: ((float) r) / 256.0 ??? -bill! |