Code::Blocks Forums

User forums => Help => Topic started by: Xorlium on July 04, 2009, 03:14:52 am

Title: SDL: Couldn't find matching GLX visual (only in codeblocks)
Post by: Xorlium on July 04, 2009, 03:14:52 am
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!