Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL version problems give cryptic errors #83

Open
paroj opened this issue May 3, 2014 · 0 comments
Open

OpenGL version problems give cryptic errors #83

paroj opened this issue May 3, 2014 · 0 comments

Comments

@paroj
Copy link
Owner

paroj commented May 3, 2014

Originally reported by: James Edgar (Bitbucket: j1s1e1, GitHub: j1s1e1)


Great tutorials. The opengl version testing fails with crypitc errors on some linux systems. If I just try to run the tutorial, I get this:

X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 34
Current serial number in output stream: 33

It might be helpful to check the versions before switching to the 3,3 context. Something like this:

#define add_test 1
#ifdef add_test
glutCreateWindow("test");
glutFullScreen();
glload::LoadFunctions();
int major_version =  glload::GetMajorVersion();
printf("OpenGL version supported by this platform (%d): \n", glload::GetMajorVersion());
if (major_version < 3)
{
     printf("Main version too low, Exiting");
    exit(1);
}
else
{
    printf("Continuing");
}
#endif

before

glutInitContextVersion (3, 3);

gives a much clearer error.

Thanks,

James

OpenGL version supported by this platform (2):
Main version too low, Exiting


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant