Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glClear(GL_COLOR_BUFFER_BIT);
- if (sdl.opengl.pixel_buffer_object) {
- GLboolean a = glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
- if (a == GL_FALSE) LOG_MSG("HELP");
- glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
- glBindTexture(GL_TEXTURE_2D, sdl.opengl.texture);
- glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
- sdl.draw.width, sdl.draw.height, GL_BGRA_EXT,
- GL_UNSIGNED_INT_8_8_8_8_REV, 0);
- glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
- glCallList(sdl.opengl.displaylist);
- SDL_GL_SwapBuffers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement