Skip to main content
GameDev.net gamedev.net
🔒 Locked

losing surfaces

Started by JoHnOnIzEr Nov 24, 2004 at 4:40 PM 1 replies 600+ views
Original Post
JoHnOnIzEr
JoHnOnIzEr
Any quick way in SDL to check if a surface has been lost and needs to be reloaded? I know if a blit returns -2 it has been lost, but is there another way?
Sidra Headquarters
Game engine is currently at version 0.9.8! Currently Down
Rob Loach
Rob Loach
SDL_Surface *surface;if(surface == NULL){    // Surface is lost}
Rob Loach [Website] [Projects] [

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.