diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-21 03:04:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-21 03:04:57 +0000 |
commit | 7ce3368e918b085ef8894fb7aa68e36b07984b1d (patch) | |
tree | e01b596e791c67aecd036f678ae7fcaae1ccf86c /gfx/gl/shaders | |
parent | Replace tokens found with values from getIntegerv (diff) | |
download | ilt-7ce3368e918b085ef8894fb7aa68e36b07984b1d.tar.bz2 ilt-7ce3368e918b085ef8894fb7aa68e36b07984b1d.tar.xz ilt-7ce3368e918b085ef8894fb7aa68e36b07984b1d.zip |
Use symbol GL_MAX_GEOMETRY_OUTPUT_VERTICES to lookup the implementation limit at runtime
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r-- | gfx/gl/shaders/networkCurve.gs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shaders/networkCurve.gs b/gfx/gl/shaders/networkCurve.gs index d373c0c..326e8b6 100644 --- a/gfx/gl/shaders/networkCurve.gs +++ b/gfx/gl/shaders/networkCurve.gs @@ -9,7 +9,7 @@ flat in float bangle[]; flat in float radius[]; layout(points) in; -layout(triangle_strip, max_vertices = 255) out; +layout(triangle_strip, max_vertices = GL_MAX_GEOMETRY_OUTPUT_VERTICES) out; const mat2 rot = mat2(1); @@ -24,7 +24,7 @@ getRot(float angle) void main() { - float segs = floor(255 / (profile.length() * 2)); + float segs = floor(GL_MAX_GEOMETRY_OUTPUT_VERTICES / (profile.length() * 2)); vec3 arcstep = vec3((bangle[0] - aangle[0]), // angle reps[0], // texture (bpos[0].z - apos[0].z)) // height |