[PD] glsl geometry error "GL: invalid operation"

Matthias Neuenhofer matthias at neuenhofer.de
Fri Dec 18 17:14:53 CET 2009


hello

the default draw type from circle is POLYGON and this doesn´t work with
the default geometry in - and outtypes, geometry_intype GL_TRIANGLES, geometry_outtype GL_TRIANGLE_STRIP. 

Change circle to mesh_square than it will work. (default draw type is TRIANGLE_STRIP) 

attached is the modified patch with the possibility to change the draw type.

The geometry_types must been set before linking the shaders, to change types the shaders must reload.

lg
Matthias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: geometry_shader.zip
Type: application/zip
Size: 2925 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091218/bc49a70b/attachment.zip>
-------------- next part --------------

Am 17.12.2009 um 10:48 schrieb IOhannes m zmoelnig:

> sleeping birds wrote:
>> hello kind pders,
>> 
>> i have trouble figuring out, why the 10.geometry help-patch does not
>> work for me.
>> 
>> starting rendering constantly prints out "GL: invalid operation" to the
>> console.
> 
> apart from the printout, does it work?
> (sometimes you get an error even though everything appears to work)
> 
>> i tried finding out, whether it was a limitation of my gpu, but don't
>> think so since i am using a Nvidia 9600M GT on a macbook pro (and once
>> saw a list somewhere, where the opengl version and features where listed).
> 
> you can send [print( to the [gemwin] to get such a thing.
> in theory, Gem shouldn't even call a code that is not supported by your
> driver.
> 
> fgmasdr
> IOhannes
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list