OpenGL/SDL screen only pops and close

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.

Hmm, there is just not enough information in your post to do more than guess at the problem, please see the [thread=176139]Forum Posting Guidelines[/thread] 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.