[Mesa-dev] [PATCH 1/2] glsl/gsraytrace: Bind transform feedback buffer.

Fabian Bieler fabianbieler at fastmail.fm
Wed Jun 12 08:34:07 PDT 2013


Bind the transform feedback buffer before drawing into it und unbind it
afterwards.
---
 src/glsl/gsraytrace.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glsl/gsraytrace.cpp b/src/glsl/gsraytrace.cpp
index 62a584d..f34a3da 100644
--- a/src/glsl/gsraytrace.cpp
+++ b/src/glsl/gsraytrace.cpp
@@ -624,6 +624,7 @@ Draw(void)
    ////printf("%d\n", i);
    //gs.fpwQuery->beginQuery();
    //gs.pgQuery->beginQuery();
+   glBindBufferBaseNV(GL_TRANSFORM_FEEDBACK_BUFFER_NV, 0, dst);
    glBeginQuery(GL_PRIMITIVES_GENERATED_NV, pgQuery);
    glBeginTransformFeedbackNV(GL_POINTS);
    //gs.eyeRaysAsPoints->bindAs(ARRAY);
@@ -671,7 +672,7 @@ Draw(void)
 
 
    ////swap(src, dst);
-   ////glBindBufferOffsetNV(GL_TRANSFORM_FEEDBACK_BUFFER_NV, 0, dst->getID(), 0); pso_gl_check();
+   glBindBufferBaseNV(GL_TRANSFORM_FEEDBACK_BUFFER_NV, 0, 0);
 
    ////clear();
 
-- 
1.8.1.2




More information about the mesa-dev mailing list