a guest Jan 21st, 2019 60 Never
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);
RAW Paste Data