Re: GL coordinates since 2.0.4 - what changed?
"Ryan C. Gordon" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Organization | icculus.org |
| Message-ID | <[email protected]> |
> What changed? Did I forget to do something? I don't know much about > OpenGL and I only use this texture which fills the screen. Here's the > full source of a short program that demonstrates the problem (simply > swapping DLLs produces the different behaviours): You probably shouldn't use the SDL render API at all; that adds a simple renderer on top of OpenGL, but since you're doing your own GL rendering anyhow, it's just going to trample some GL state without your permission. Just delete the call to SDL_CreateRenderer() and keep using everything else in here (including the SDL_WINDOW_OPENGL flag and the SDL_GL_CreateContext() and SDL_GL_SwapWindow() calls) as it is. --ryan.