summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/transformfeedback.c
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2013-11-15 19:53:29 +0100
committerFredrik Höglund <[email protected]>2014-05-02 03:00:41 +0200
commit835abfaba415bd8d24ee178f53ef1cad73a4e6ce (patch)
treeeb2dd5b60914faba3adbf63c78db099ee33ebf5e /src/mesa/main/transformfeedback.c
parentf65a0c19a50e283dcbfe9424f5c6d14e61eb4118 (diff)
mesa: Add _mesa_set_transform_feedback_binding()
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r--src/mesa/main/transformfeedback.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index abeb25e8734..a73746335fe 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -32,7 +32,6 @@
#include "buffers.h"
-#include "bufferobj.h"
#include "context.h"
#include "hash.h"
#include "macros.h"
@@ -533,14 +532,7 @@ bind_buffer_range(struct gl_context *ctx, GLuint index,
bufObj);
/* The per-attribute binding point */
- _mesa_reference_buffer_object(ctx,
- &obj->Buffers[index],
- bufObj);
-
- obj->BufferNames[index] = bufObj->Name;
-
- obj->Offset[index] = offset;
- obj->RequestedSize[index] = size;
+ _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size);
}