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

Misc: Picking with a Physics Library Profile Error #6

Open
GoogleCodeExporter opened this issue Oct 10, 2015 · 0 comments
Open

Misc: Picking with a Physics Library Profile Error #6

GoogleCodeExporter opened this issue Oct 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In file misc05_picking/misc05_picking_BulletPhysics.cpp the (line 99) 
OPENGL_PROFILE is set with GLFW_OPENGL_COMPAT_PROFILE which later causes my 
window to become NULL (Printing an inaccurate error message. Other tutorials 
have it set to GLFW_OPENGL_CORE_PROFILE. When I changed it myself to the core 
profile, the error went away.

96:  glfwWindowHint(GLFW_SAMPLES, 4);
97:  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
98:  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
99:  glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE);
100:
101: // Open a window and create its OpenGL context
102: window = glfwCreateWindow( 1024, 768, "Misc 05 - Bullet version", NULL, 
NULL);
103: if( window == NULL ){
104:         fprintf( stderr, "Failed to open GLFW window. If you have an Intel 
GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n" );

So to fix: change line 99 to use GLFW_OPENGL_CORE_PROFILE.

My Information:
OS:        Ubuntu 14.04 64-bit
Processor: Intel Pentium CPU G860 @ 3.00GHz x 2
Graphics:  Gallium 0.4 on AMD CYPRESS

Original issue reported on code.google.com by [email protected] on 30 Oct 2014 at 6:40

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