Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ... generate texture on GPU.
- glReadBuffer(..where the texture is..);
- glReadPixels(..., mainMemoryBuffer);
- glBufferSubData(GL_ARRAY_BUFFER, ..., mainMemoryBuffer);
- glBindBuffer(GL_PIXEL_PACK_BUFFER, myVbo);
- glReadPixels(..., 0);
Add Comment
Please, Sign In to add comment