[Mesa-dev] [PATCH 05/12] glsl/gsraytrace: Bind transform feedback buffer.
Fabian Bieler
fabianbieler at fastmail.fm
Wed Feb 5 13:07:45 PST 2014
Bind the transform feedback buffer before drawing into it und unbind it
afterwards.
Signed-off-by: Fabian Bieler <fabianbieler at fastmail.fm>
---
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 eace71b..e76a3a2 100644
--- a/src/glsl/gsraytrace.cpp
+++ b/src/glsl/gsraytrace.cpp
@@ -628,6 +628,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);
@@ -675,7 +676,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.3.2
More information about the mesa-dev
mailing list