Permalink
Browse files

glsl: fix sizing of two-dimensional GS input arrays at link time (again)

  • Loading branch information...
1 parent fd97d32 commit a60b651f6efbfcdd3c5787cdafd9cd861454bfac @Plombo committed Aug 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/glsl/linker.cpp
View
@@ -240,7 +240,7 @@ class geom_array_resize_visitor : public ir_visitor {
var->type->element_type()->element_type(),
this->num_vertices);
var->type = glsl_type::get_array_instance(inner_type,
- var->max_array_access);
+ var->max_array_access+1);
} else {
var->type = glsl_type::get_array_instance(var->type->element_type(),
this->num_vertices);

0 comments on commit a60b651

Please sign in to comment.