summaryrefslogtreecommitdiff
path: root/ir.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-26 14:33:41 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-26 14:33:41 -0700
commit0471e8b0896e05b3bc81ccad6184e6e35fb61425 (patch)
tree8f73afd3f5781cc6aadb5045f3dc836f2ae8874b /ir.cpp
parenta43817a483a8c4a480ef4e6dfda2cef899300eb0 (diff)
Make glsl_*_type glsl_type class static data
Diffstat (limited to 'ir.cpp')
-rw-r--r--ir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir.cpp b/ir.cpp
index 58c459ed5d..c4c7584bcf 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -83,7 +83,7 @@ ir_dereference::ir_dereference(ir_instruction *var)
{
this->mode = ir_reference_variable;
this->var = var;
- this->type = (var != NULL) ? var->type : glsl_error_type;
+ this->type = (var != NULL) ? var->type : glsl_type::error_type;
}
@@ -92,7 +92,7 @@ ir_dereference::ir_dereference(ir_instruction *var,
: ir_rvalue(), mode(ir_reference_array),
var(var)
{
- this->type = (var != NULL) ? var->type : glsl_error_type;
+ this->type = (var != NULL) ? var->type : glsl_type::error_type;
this->selector.array_index = array_index;
}
@@ -237,6 +237,6 @@ ir_call::get_error_instruction()
{
ir_call *call = new ir_call;
- call->type = glsl_error_type;
+ call->type = glsl_type::error_type;
return call;
}