[SDL] Bad OpenGL context handling.

Joonas Lahtinen joonas at linuxgamepublishing.com
Fri Jan 6 07:54:03 PST 2006


On Friday 06 January 2006 15:18, Ryan C. Gordon wrote:
> > 	if(SDL_GL_LoadLibrary(NULL) == -1)
> > 		abort();
> > 	const GLubyte*(*func)(GLenum);
> > 	if((func = SDL_GL_GetProcAddress("glGetString")) == NULL)
> > 		abort();
>
> Call SDL_SetVideoMode() after SDL_GL_LoadLibrary() and before
> SDL_GL_GetProcAddress().

I'm not willing to have any window yet by the time I do this. Obviously this 
means I will have to handle the context on my own, right?

Regards, Joonas
>
> --ryan.
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl

-- 
Joonas "dolphin" Lahtinen <joonas at linuxgamepublishing.com>




More information about the SDL mailing list