src/video/SDL_video.c
changeset 423 d1565c52ded5
parent 371 db0cc6034336
child 430 60effdbf14ee
     1.1 --- a/src/video/SDL_video.c	Wed Jul 03 04:54:55 2002 +0000
     1.2 +++ b/src/video/SDL_video.c	Wed Jul 10 05:18:09 2002 +0000
     1.3 @@ -1299,10 +1299,14 @@
     1.4  	int retval;
     1.5  
     1.6  	retval = -1;
     1.7 -	if ( video && video->GL_LoadLibrary ) {
     1.8 -		retval = video->GL_LoadLibrary(this, path);
     1.9 +	if ( video == NULL ) {
    1.10 +		SDL_SetError("Video subsystem has not been initialized");
    1.11  	} else {
    1.12 -		SDL_SetError("No dynamic GL support in video driver");
    1.13 +		if ( video->GL_LoadLibrary ) {
    1.14 +			retval = video->GL_LoadLibrary(this, path);
    1.15 +		} else {
    1.16 +			SDL_SetError("No dynamic GL support in video driver");
    1.17 +		}
    1.18  	}
    1.19  	return(retval);
    1.20  }