[SDL] Runtime opengl failure
Sami Näätänen
sn.ml at bayminer.com
Mon Jan 8 06:54:36 PST 2007
On Monday 08 January 2007 02:53, Paul Duffy wrote:
> --- Simon <simon.xhz at gmail.com> wrote:
> > Paul Duffy wrote:
> > > --- Simon <simon.xhz at gmail.com> wrote:
> > >> Hardware surfaces? No
> > >
> > > Switch on hardware surfaces.
> >
> > My flag is now: SDL_HWSURFACE | SDL_OPENGL
> > Though I still get the exact same error. I played a bit with the
> > flags
> > and either I get the window to open but completely black (without
> > the
> >
> > opengl content) or that I can't open the window at all.
>
> Well, you're definitely setting the hardware surface and OpenGL flags
> correctly because it's looking for both. Looking at it again, it does
> seem that the only thing wrong is the lack of an available SDL
> surface; Are you definitely setting the surface pointer with
>
> SDL_Surface *surfacename;
>
> and setting the videomode with
>
> surfacename=SDL_SetVideoMode(X, Y, BPP, flags);
It more likely has no OpenGL support build into the SDL or as a more
likely reason SDL can't dynamically load the GL library, because it is
located in some odd place or the nvidia/ati driver can't be loaded.
More information about the SDL
mailing list