shader's bug: jit.gl.texture: error entering unbind: GL Error: Invalid operation

matthieu's icon

hello cycling 74 community,

I encounter some bugs trying to test geometry shaders in the jit.gl.shader help patch.

I have the last macbookpro with quadcore i7 2.3 CPU and the amd radeon HD 6750M graphics card, snow leopard, with the last version of max.

When i try to bind a geometry shader provided by the distribution on jit.gl.gridshape (with an attached texture), the max printing window reports:

jit.gl.texture: error entering unbind: GL Error: Invalid operation

and if i unbind the texture i have the following reported error:

ob3d_draw_end popmatrix: GL Error: Invalid operation

It's only happening with shaders from the geometry file.

So i was wondering me if somebody can confirm this issue, or maybe can help me (i need it for a visual performance in 2 weeks....), maybe i have to rewrite line in those shaders ...... ??

matthieu's icon

anybody?

mirrorboy's icon

I have encountered same problem too.
My problem occurred when I try to bind geometry jit.gl.shader to jit.gl.gridshape.
Max window prints message below

jit.gl.mesh: unbinding vertex array: GL Error: Invalid operation

Rob Ramirez's icon

does the following example patch work?
examples/jitter-examples/render/Shaders/gm.solidpoint.demo.maxpat

post your patch.

mirrorboy's icon

Thanks Rob.

I solved my problem.

Because I set wrong OpenGL primitive to jit.gl.mesh, the error message printed out on max window.Geometry Shader accept specific primitive.