GL_PRIMITIVES_GENERATED and geometry shader

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.)

Erm,

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