ir_to_mesa: Support texture rectangle targets
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 16 Aug 2010 16:39:58 +0000 (09:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 16 Aug 2010 16:39:58 +0000 (09:39 -0700)
src/mesa/program/ir_to_mesa.cpp

index 2208bc1ce81b7181ae0b8a62a5abb7ba56a06d3e..b8a35ce162b30ba2586946d3bc4a6fd2dc62e992 100644 (file)
@@ -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");
    }