diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-26 16:37:53 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-26 17:51:41 -0700 |
commit | 72fc47f0b0605748c9643e61c2a879b8476aa533 (patch) | |
tree | 5e973f503a6d49a055d170ca22d2fe155fb2822a | |
parent | 8518e75d289638b10cb9350f287ccbdf1c927040 (diff) |
Set variables with the sampler base type to read only.
Fixes increment3.frag.
-rw-r--r-- | ir.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |