Problem with GL_SELECT

Hi!

I copied the source from somewhere else for picking up an object (from GameTutorials.com)

But once I call
glRenderMode(GL_SELECT);

the application breaks down.

I called glSelectBuffer before and DEPTH_TEST is active. glSelectBuffer returns no error.

What could be the problem?

Hello,

One possibility could be, that the buffer you have specified with glSelectBuffer() has not allocated enough memory or is still pointing to NULL.

Sumpfratte