From 5e98cefb5a088b71ed3cb8e5cd826deed7d28b37 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 8 Dec 2012 16:02:54 +0100 Subject: [PATCH] st/mesa: set PIPE_BIND_SAMPLER_VIEW for TBOs in st_bufferobj_data --- src/mesa/state_tracker/st_cb_bufferobjects.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2