[SDL] Runtime opengl failure
Paul Duffy
odubtaig at yahoo.co.uk
Sun Jan 7 16:53:33 PST 2007
--- 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);
?
"Duct tape is like the Force. It has a dark side, it has a
light side, and it holds the Universe together."
-Carl Zwanig
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the SDL
mailing list