vanish87 / nvidia-widgets

Automatically exported from code.google.com/p/nvidia-widgets
0 stars 0 forks source link

Example fails on GLEW #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded latest SVN on OSX leopard
2. Configure and Make
3. execute 'example' from build/src/nvwidgets/examples/example

What is the expected output? What do you see instead?
The fellow should pop up a GL window and show stuff happening. The console
reports back to me "GLEW initialization failed"

What version of the product are you using? On what operating system?
Latest SVN. OSX 10.5 leopard.

Please provide any additional information below.
Is it just me?

Original issue reported on code.google.com by Dudy...@gmail.com on 2 May 2009 at 4:05

GoogleCodeExporter commented 9 years ago
Sounds like a problem with your setup. Can you run other glew applications?

Original comment by cast...@gmail.com on 2 May 2009 at 4:28

GoogleCodeExporter commented 9 years ago
commenting out lines 163 and 169 within example.cpp resolves the issue and the 
fellow
runs just fine. I think. I'm not sure how it is supposed to run, but it DOES 
run.
Hooray. GLEW is evil.

Original comment by Dudy...@gmail.com on 2 May 2009 at 5:18

GoogleCodeExporter commented 9 years ago
You should check the error code of glewInit to understand what's going on. 
Ideally,
the example should do something like:

GLenum err = glewInit();
if (GLEW_OK != err)
{
  fprintf(stderr, "GLEW Error: %s\n", glewGetErrorString(err));
  return 0;
}

Original comment by cast...@gmail.com on 2 May 2009 at 6:07

GoogleCodeExporter commented 9 years ago
I get the following output:

GLEW Error: GLX 1.2 and up are not supported

Looking in to how to fix this...

Original comment by Dudy...@gmail.com on 4 May 2009 at 2:09