SDL crossplatform GL issues

Hi there.

Im a newbie attempting to write crossplatform code.
Although my SDL demos are running fine on all platforms, on windows, my attempts
to query info with glGetString, including GL_VERSION all return NULL.
Does anyone know of some possible reasons for this?
Ive read in other straight gl forums this may be caused by a bad win rendering
context. Does SDL support the creation of an a cross-platform gl rendering
context, or must I explore the rathole of windows-specific gl code.

thanks for any help or pointers to docs

Although my SDL demos are running fine on all platforms, on windows, my attempts
to query info with glGetString, including GL_VERSION all return NULL.

You must not make any gl* Calls before SDL_SetVideoMode().

After SetVideoMode, the calls should work as expected.

  • Andreas

Many thanks Andreas.

-Tod