-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Examples runtime problem - OpenGL / GLX related #95
Comments
Updating to a newer version of Mesa might fix this problem. The overview example requires OpenGL 3.3 support. The output of glxinfo shows OpenGL 2.1 support. |
Seems to be similar to #89 - @smartmic take a look at the proposed solution outlined in #89 (comment) . |
Thanks for you issue. Quick question does any of the demos work or is nothing running at all? If none of the demos or examples run then like @dumblob there is the possibility that you don't have the correct OpenGL version. If it is really a version problem then I probably have to create a OpenGL demo version which runs on a lower version. |
Thanks for the answers. The only demo I could get run was |
I can spend some time tomorrow and see how far I get with an older version of OpenGL for glfw and sdl. |
@smartmic: diff --git a/example/overview.c b/example/overview.c
index 2b7126b..7a71ddb 100644
--- a/example/overview.c
+++ b/example/overview.c
@@ -1381,9 +1381,8 @@ int main(int argc, char *argv[])
fprintf(stdout, "[GFLW] failed to init!\n");
exit(1);
}
- glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
- glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
- glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
#ifdef __APPLE__
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
#endif |
And then probably continue with: #89 (comment) |
Here's another, working, starting point. https://gist.github.com/daumiller/9301246b24b3efe5b26006d88856747f It needs cleaning up; but it does work. |
@andreygursky thanks, first step was successful, but I still could not get it run. The suggestion of #89 did not help, and I still get this error:
How can I find out if my system / vintage graphics card fulfills all prerequisites? |
OK I finished a OpenGL 2 demo version for SDL and GLFW (389176e) which allows using this library for older device with older OpenGL versions. |
I have a Debian Wheezy box and had already to change the linking lib to get compilation done. Compilation finishes without errors now, but I could not get the examples running, this is the error:
My LIBS variable in the Makefile was determined with
pkg-config
:I was wondering if the runtime is related to missing dependencies, but the mentioned profile is availble, see my output of glxinfo. What am I missing? Or is nouveau the culprit?
The text was updated successfully, but these errors were encountered: