SDL + GL rendering glitches

Started by
1 comment, last by muffinpeddler 19 years, 4 months ago
Okay, well I am using GL through SDL, and when I draw 3D shapes, they start out fine, but when I resize the window (I am passing resize events, etc.), the shapes get all freaky, with the pyramid being see through and the cube being see through and seems to have lost a top layer. Any suggestions? Oh yea, this ONLY happens on windows, so could it be a problem with SDL? I am using SDL 1.2.7, but it works fine on linux. Thanks.
Advertisement
Are you reseting the viewport and the projection matrix?
Hey, thanks for the reply. Turns out the error was somewhere else. I was changing the SDL_Surface of my frame and also resizing it to create a bad mixture on every resize. Fixed! Thanks.

This topic is closed to new replies.

Advertisement