st/mesa: set PIPE_BIND_STREAM_OUTPUT for TFB target in st_bufferobj_data
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 May 2012 19:32:47 +0000 (21:32 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 17 May 2012 13:24:58 +0000 (15:24 +0200)
src/mesa/state_tracker/st_cb_bufferobjects.c

index 6534a4347ab230494de395405652e9ea6a74acd7..b47a2d87f74619bdd2f34c8fa56d2f680910bf44 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_TRANSFORM_FEEDBACK_BUFFER:
+      bind = PIPE_BIND_STREAM_OUTPUT;
+      break;
    default:
       bind = 0;
    }