Advertisement
dominus

Untitled

Dec 9th, 2019
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. case SCREEN_OPENGL:
  2. // Clear drawing area. Some drivers (on Linux) have more than 2 buffers and the screen might
  3. // be dirty because of other programs.
  4. glClearColor (0.0f, 0.0f, 0.0f, 1.0f);
  5. glClear(GL_COLOR_BUFFER_BIT);
  6. if (sdl.opengl.pixel_buffer_object) {
  7. glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
  8. glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
  9. GLboolean a = glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
  10. if (a == GL_FALSE) LOG_MSG("HELP");
  11. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement