Set variables with the sampler base type to read only.

Fixes increment3.frag.
This commit is contained in:
Eric Anholt
2010-03-26 16:37:53 -07:00
committed by Ian Romanick
parent 8518e75d28
commit 72fc47f0b0
+3
View File
@@ -240,6 +240,9 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name)
{
this->type = type;
this->name = name;
if (type && type->base_type == GLSL_TYPE_SAMPLER)
this->read_only = true;
}