PDA

View Full Version : GL_PRIMITIVES_GENERATED and geometry shader



NSudmann
10-29-2011, 03:36 PM
Hi,

Not quite sure if this should be in the shading language section, but I'll try here first.

I cannot get the GL query GL_PRIMITIVES_GENERATED to work with a geometry point shader. If I disable it and use the fixed pipeline, I get the correct result. But once the geometry shader is enabled qlGetQueryObject always returns 0. But I can see that points being rendered.

(The geometry shader is used do culling of points without a depth test. The points are rendered between a glBegin()/glEnd() pair.)

NSudmann
10-29-2011, 04:02 PM
Erm,

Forget it, found the problem. glRasterPos3d() does not work with the shader enabled. Wonder why?