From: Ian Romanick Date: Mon, 16 Aug 2010 16:39:58 +0000 (-0700) Subject: ir_to_mesa: Support texture rectangle targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bf63733e54b47daf9f50c32a1fca4039c82def2;p=mesa.git ir_to_mesa: Support texture rectangle targets --- 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"); }