summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-16 09:39:58 -0700
committerIan Romanick <[email protected]>2010-08-16 09:39:58 -0700
commit0bf63733e54b47daf9f50c32a1fca4039c82def2 (patch)
tree8294d7e2d78be272f793ba278f7c149a51b6a1bc /src
parent83baa8a6c5541829003bbffe1d2b8cee5a0263fd (diff)
ir_to_mesa: Support texture rectangle targets
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 2208bc1ce81..b8a35ce162b 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2090,6 +2090,9 @@ ir_to_mesa_visitor::visit(ir_texture *ir)
case GLSL_SAMPLER_DIM_CUBE:
inst->tex_target = TEXTURE_CUBE_INDEX;
break;
+ case GLSL_SAMPLER_DIM_RECT:
+ inst->tex_target = TEXTURE_RECT_INDEX;
+ break;
default:
assert(!"FINISHME: other texture targets");
}