Advertisement
dominus

Untitled

Dec 9th, 2019
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. glClear(GL_COLOR_BUFFER_BIT);
  2. if (sdl.opengl.pixel_buffer_object) {
  3. GLboolean a = glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
  4. if (a == GL_FALSE) LOG_MSG("HELP");
  5. glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
  6. glBindTexture(GL_TEXTURE_2D, sdl.opengl.texture);
  7. glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
  8. sdl.draw.width, sdl.draw.height, GL_BGRA_EXT,
  9. GL_UNSIGNED_INT_8_8_8_8_REV, 0);
  10. glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
  11. glCallList(sdl.opengl.displaylist);
  12. SDL_GL_SwapBuffers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement