OpenGL problem?

I am using windows. I am trying to get OpenGL to use fullscreen, but
when i use SDL_FULLSCREEN my program exits with an error that it cannot
create the gl context.

Thanks in advance

—Andy Howe
When a ball dreams, it dreams it’s a frisbee"

I am using windows. I am trying to get OpenGL to use fullscreen, but
when i use SDL_FULLSCREEN my program exits with an error that it cannot
create the gl context.

What version of SDL are you using? That shouldn’t happen with SDL 1.1.4

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I tried it with 1.1.4 and 1.1.2 i know that it should work because i
have run opengl in fullscreen before. It just stopped working one day. i
was curious if anybody else on the list had a similar problem.

What version of SDL are you using? That shouldn’t happen with SDL 1.1.4

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

—Andy Howe

It is possible that happens because you try to open a fullscreen with
a size that you haven’t listed in the XF86Config ? Perhaps…

Hoping that will help, neither hoping you will find the solution.

Regards,

Fluxy from goonix projects

firemen.sourceforget.net
goonix.sourceforge.net
email : @Bruno_Galet

Andy Howe wrote:>

I am using windows. I am trying to get OpenGL to use fullscreen, but
when i use SDL_FULLSCREEN my program exits with an error that it cannot
create the gl context.

Thanks in advance

—Andy Howe
When a ball dreams, it dreams it’s a frisbee"

This works like a charm on Win95

if ( SDL_Init(SDL_INIT_VIDEO) < 0 )
exit(1);

if ( SDL_SetVideoMode(640, 480, 0, SDL_OPENGL | SDL_FULLSCREEN |
SDL_DOUBLEBUF) == NULL ) {
SDL_Quit();
exit(2);
}
SDL_WM_SetCaption(TITULO, NULL);
InitGL(640, 480);

If something like this fails, maybe there’s something wrong in your setup.

I am using windows. I am trying to get OpenGL to use fullscreen, but
when i use SDL_FULLSCREEN my program exits with an error that it
cannot> create the gl context.

Thanks in advance

—Andy Howe
When a ball dreams, it dreams it’s a frisbee"