Posted 12 December 2012 - 10:44 AM
I'm implementing line thickness rendering with geometry shader, i.e to create two triangles from a line segment. Although the GS works, it is not needed and thus should be disabled when graphics objects other than thickness lines are drawn, e.g. polygons. So how can I enable and disable geometry shader given certain conditions at runtime? Thanks in advance.