Guest User

Untitled

a guest
Jan 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. // ... generate texture on GPU.
  2. glReadBuffer(..where the texture is..);
  3. glReadPixels(..., mainMemoryBuffer);
  4. glBufferSubData(GL_ARRAY_BUFFER, ..., mainMemoryBuffer);
  5.  
  6. glBindBuffer(GL_PIXEL_PACK_BUFFER, myVbo);
  7. glReadPixels(..., 0);
Add Comment
Please, Sign In to add comment