daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top