Project

General

Profile

« Previous | Next » 

Revision bdb80fb0

Added by Leszek Koltunski over 7 years ago

Stride should be 0 (but for some reason it worked even with the incorrect 4)

View differences:

src/main/java/org/distorted/examples/feedback/FeedbackRenderer.java
59 59
      mFeedbackProgram.useProgram();
60 60

  
61 61
      GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVBO[0]);
62
      GLES30.glVertexAttribPointer(mFeedbackProgram.mAttribute[0], 1, GLES30.GL_FLOAT, false, 4, 0);
62
      GLES30.glVertexAttribPointer(mFeedbackProgram.mAttribute[0], 1, GLES30.GL_FLOAT, false, 0, 0);
63 63
      GLES30.glBindBufferBase(GLES30.GL_TRANSFORM_FEEDBACK_BUFFER, 0, mTBO[0]);
64 64

  
65 65
      GLES30.glEnable(GLES30.GL_RASTERIZER_DISCARD);

Also available in: Unified diff