After installing Mesa3D on a Linux system, distro - Vector Linux 4, I tried compiling a simple SDL program, trying to initialise OpenGL.
I get an error which says “Couldn’t find matching GLX visual” when SDL_OPENGL is passed as one of the initialisation flags.
Mesa3D is properly installed, so what could possibly be wrong and how can I solve the problem?
InitGames Software
http://initgames.t35.com/
Akinwale Ariwodola wrote:
After installing Mesa3D on a Linux system, distro - Vector Linux 4, I
tried compiling a simple SDL program, trying to initialise OpenGL.
I get an error which says “Couldn’t find matching GLX visual” when
SDL_OPENGL is passed as one of the initialisation flags.
Mesa3D is properly installed, so what could possibly be wrong and how
can I solve the problem?
InitGames Software
http://initgames.t35.com/
You should run “glxinfo” to see which opengl pixel formats are
supported. The fact that you get "Couldn’t find matching GLX visual"
means that GLX can’t find a mode matching the required among the listed
video modes. To specify the pixel mode you want, you should use
SDL_GL_SetAttribute() command.
Stephane
Problem solved.
After running glxinfo, I discovered that I had used SDL_GL_SetAttribute
to set the values higher than it should have been.
Thanks.