From: Christoph Bumiller Date: Sat, 8 Dec 2012 15:02:54 +0000 (+0100) Subject: st/mesa: set PIPE_BIND_SAMPLER_VIEW for TBOs in st_bufferobj_data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e98cefb5a088b71ed3cb8e5cd826deed7d28b37;p=mesa.git st/mesa: set PIPE_BIND_SAMPLER_VIEW for TBOs in st_bufferobj_data --- diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 7d1c05a33f7..cf291c1c176 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -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;