News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

SDL: Couldn't find matching GLX visual (only in codeblocks)

Started by Xorlium, July 04, 2009, 03:14:52 AM

Previous topic - Next topic

Xorlium

Hi everyone,

I'm learning SDL with OpenGL on linux (opensuse 11.1), codeblocks version r5678-1.1.

I have the simplest program (just template included in codeblocks, that initializes SDL, with the added option SDL_OPENGL) and with the appropiate GL library linked. I can compile it no problem, but when it runs, it says SDL: Couldn't find matching GLX visual. I thought it was an SDL problem, so I searched endlessly. But then I realized that I can actually run the program fine if I go with a terminal inside the bin directory and just say ./OpenGlTest

So all the extra options codeblocks passes to the terminal are somehow making it not work...

Any ideas?

Thanks!