use MAX_VARYING
authorBrian <brian@yutani.localnet.net>
Fri, 15 Dec 2006 17:08:15 +0000 (10:08 -0700)
committerBrian <brian@yutani.localnet.net>
Fri, 15 Dec 2006 17:08:15 +0000 (10:08 -0700)
src/mesa/shader/slang/slang_link.c

index 6114b7c2520acf8c0a15f4719e54f2302b4b3485..008b7ab36996fe8524157aa287a85bd5d759a4ea 100644 (file)
@@ -566,7 +566,7 @@ add_varying_binding (slang_varying_bindings *self, slang_export_data_quant *q, c
       }
    }
 
-   if (self->slot_count + slot_span > MAX_VARYING_FLOATS) {
+   if (self->slot_count + slot_span > MAX_VARYING * 4) {
       /* TODO: info log: error: MAX_VARYING_FLOATS exceeded */
       return GL_FALSE;
    }