diff options
author | Fabian Bieler <fabianbieler@fastmail.fm> | 2014-02-05 22:07:45 +0100 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-03-08 02:07:30 -0800 |
commit | 81a1c89def4dbfba22e4f7fe11b732976cfdb42a (patch) | |
tree | 9e35e2a89a6b43116bcb8080a3b2bf89a93da2f7 /src/glsl | |
parent | b653f07e6966422851c54abce085748efe75329d (diff) |
glsl/gsraytrace: Bind transform feedback buffer.
Bind the transform feedback buffer before drawing into it and unbind it
afterwards.
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/gsraytrace.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/gsraytrace.cpp b/src/glsl/gsraytrace.cpp index f156fdc4..015bfcdc 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(); |