diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-11-25 09:49:07 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-11-25 09:49:07 +0300 |
commit | e6fff424dbcd02c3fed25036a7feb7f59d427843 (patch) | |
tree | 7e4c385e4dbbb8e9f09355d010173701e8e19bf0 /intern/opensubdiv | |
parent | 22ec7b17d29d689d378791b56505aad62401230b (diff) |
OpenGL: set geometry shader input length implicitly
Input array length is implicitly set at link time, based on the geometry
shader's layout. Specifying the wrong value here is an error; specifying
no value is the same as getting it right. (inspired by a recent codegen
change)
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/gpu_shader_opensubd_display.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/opensubdiv/gpu_shader_opensubd_display.glsl b/intern/opensubdiv/gpu_shader_opensubd_display.glsl index d32a1787d4b..57bbfa89714 100644 --- a/intern/opensubdiv/gpu_shader_opensubd_display.glsl +++ b/intern/opensubdiv/gpu_shader_opensubd_display.glsl @@ -81,7 +81,7 @@ uniform int osd_active_uv_offset; in block { VertexData v; -} inpt[4]; +} inpt[]; #define INTERP_FACE_VARYING_2(result, fvarOffset, tessCoord) \ { \ |