No color when using MFC?

Started by
1 comment, last by SneakyTommy 22 years, 5 months ago
Can anyone confirm this bug? Download opengl's MFC source code... http://www.opengl.org/developers/faqs/technical/mswindows.htm#mswi0160 color is present in debug mode. But when switched to release mode, color disappears. however, if you close and open application quickly for a few times, the color will appear... Any solutions? Edited by - SneakyTommy on October 30, 2001 12:16:26 PM
Advertisement
I hate it when this happens...

I run my "release" version on another computer and it works, but it refuses to work on the computer I compiled it on...

any ideas?
quote:Original post by SneakyTommy
Can anyone confirm this bug?

Download opengl''s MFC source code...

http://www.opengl.org/developers/faqs/technical/mswindows.htm#mswi0160

color is present in debug mode.

But when switched to release mode, color disappears.
however, if you close and open application quickly for a few times, the color will appear...

Any solutions?

Edited by - SneakyTommy on October 30, 2001 12:16:26 PM




I had the same problem when I brought my application from Uni to home.
The problem was with glEnable(GL_TEXTURE_2D) and glClearColor, I needed to call it(actually I call glColor4f(0.0,0.0,0.0,0.0) after I drawn something with color).
So, to draw somwthing with color (line) I call glDisable(GL_TEXTURE_2D); glColor4f(0,0,0,0);
then my color - glColor3f(0.0,1.0,0.0);
then turn textures back on - glEnable(GL_TEXTURE_2D);


This topic is closed to new replies.

Advertisement