PDA

View Full Version : OpenGL/SDL screen only pops and close



FirstAspic
10-28-2013, 08:31 PM
can you help me on this one!
as the tittle say when i run the program the screen only pops and close
but it only happens when i add texture to my code without the texture the screen would run ok.
the lighting and color works fine.

carsten neumann
10-29-2013, 06:43 AM
Hmm, there is just not enough information in your post to do more than guess at the problem, please see the Forum Posting Guidelines for suggestions how to ask good questions. My guess would be that you have some kind of memory problem (perhaps out of bounds access) in your texture handling that crashes the application. You could try running your program under a debugger to find the location it crashes at and work your way backwards from there to find the cause.