gallivm: added missing case for PIPE_TEXTURE_RECT
authorBrian Paul <brianp@vmware.com>
Fri, 17 Sep 2010 18:16:02 +0000 (12:16 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Sep 2010 18:16:45 +0000 (12:16 -0600)
Fixes fd.o bug 30245

src/gallium/auxiliary/gallivm/lp_bld_sample.h

index 1a9cc944a33cb51a9e3e1d46d3f9deb0abaaa5d8..8b042d5242e15ee5a14baba68a9f393ce6438dfe 100644 (file)
@@ -225,6 +225,7 @@ texture_dims(enum pipe_texture_target tex)
    case PIPE_TEXTURE_1D:
       return 1;
    case PIPE_TEXTURE_2D:
+   case PIPE_TEXTURE_RECT:
    case PIPE_TEXTURE_CUBE:
       return 2;
    case PIPE_TEXTURE_3D: