vurtun / nuklear

A single-header ANSI C gui library
13.69k stars 1.11k forks source link

Error 65543: GLX: Failed to create context: GLXBadFBConfig #364

Open Meai1 opened 7 years ago

Meai1 commented 7 years ago
[pc@localhost example]$ bin/skinning
Error 65543: GLX: Failed to create context: GLXBadFBConfig
skinning: /builddir/build/BUILD/glfw-3.2.1/src/window.c:774: glfwSetWindowUserPointer: Assertion `window != ((void *)0)' failed.
Aborted (core dumped)

Linux Centos7

[pc@localhost example]$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 2.1 Mesa 10.6.5
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.6.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
silversquirl commented 7 years ago

I'm getting the same error with all GLFW3 demos on Arch. I've written programs using GLFW3 that work fine, so I'm pretty sure the issue lies in Nuklear.

lieff commented 7 years ago

glfw_opengl3 requires opengl 3.3, while you have only 2.1. What sample you are trying?

silversquirl commented 7 years ago

Hmmm... how odd, glxinfo shows 2.1 for me too. Is that a graphics card limitation? My system is up to date, so I don't think it's a software issue.

lieff commented 7 years ago

Yes, it's graphics card limitation, mesa supports minimum 3.1 for all included drivers: https://mesamatrix.net/ Proprietary drivers should support max hardware capabilities too.