I’ve got a problem with clearing the color buffer. That line:
should, IMO, result with black (or other - depending from how did I set glClearColor) window. But I always gain a window in the color of the sea - even, when I put the following line before glClear:
I don’t know what could it be . It works inproperly only on my machine. I work on AMD Athlon 2000 with GeForce 2 MX. I use Windows 98.
Problem solved . It was only my stupidility, which made me to clear the depth buffer and color buffer simultaneously with something like that:
glClear(GL_COLOR_BUFFER_BIT and GL_DEPTH_BUFFER_BIT);
When I replaced and with or, everything worked fine.
I think I won’t delete this topic - it will serve as memoriam . But if somebody could move it to the beginners group…
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.