st/mesa: set PIPE_BIND_SAMPLER_VIEW for TBOs in st_bufferobj_data
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 8 Dec 2012 15:02:54 +0000 (16:02 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 8 Dec 2012 21:47:00 +0000 (22:47 +0100)
src/mesa/state_tracker/st_cb_bufferobjects.c

index 7d1c05a33f7efb2b9c7106e0ef2085bb15470c52..cf291c1c17639451a9cf678db20a8367908c9ac0 100644 (file)
@@ -195,6 +195,9 @@ st_bufferobj_data(struct gl_context *ctx,
    case GL_ELEMENT_ARRAY_BUFFER_ARB:
       bind = PIPE_BIND_INDEX_BUFFER;
       break;
+   case GL_TEXTURE_BUFFER:
+      bind = PIPE_BIND_SAMPLER_VIEW;
+      break;
    case GL_TRANSFORM_FEEDBACK_BUFFER:
       bind = PIPE_BIND_STREAM_OUTPUT;
       break;