comparison libvo/vo_gl.c @ 28068:279cc24cb5cc

Fix indentation
author reimar
date Fri, 05 Dec 2008 22:35:24 +0000
parents 7511f7328d93
children 74b62cf052af
comparison
equal deleted inserted replaced
28067:7511f7328d93 28068:279cc24cb5cc
712 mesa_bufferptr = AllocateMemoryMESA(mDisplay, mScreen, needed_size, 0, 0, 0); 712 mesa_bufferptr = AllocateMemoryMESA(mDisplay, mScreen, needed_size, 0, 0, 0);
713 mesa_buffersize = needed_size; 713 mesa_buffersize = needed_size;
714 #endif 714 #endif
715 mpi->planes[0] = mesa_bufferptr; 715 mpi->planes[0] = mesa_bufferptr;
716 } else { 716 } else {
717 if (!gl_buffer) 717 if (!gl_buffer)
718 GenBuffers(1, &gl_buffer); 718 GenBuffers(1, &gl_buffer);
719 BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); 719 BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer);
720 if (needed_size > gl_buffersize) { 720 if (needed_size > gl_buffersize) {
721 gl_buffersize = needed_size; 721 gl_buffersize = needed_size;
722 BufferData(GL_PIXEL_UNPACK_BUFFER, gl_buffersize, 722 BufferData(GL_PIXEL_UNPACK_BUFFER, gl_buffersize,
723 NULL, GL_DYNAMIC_DRAW); 723 NULL, GL_DYNAMIC_DRAW);
724 } 724 }
725 if (!gl_bufferptr) 725 if (!gl_bufferptr)
726 gl_bufferptr = MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); 726 gl_bufferptr = MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY);
727 mpi->planes[0] = gl_bufferptr; 727 mpi->planes[0] = gl_bufferptr;
728 BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); 728 BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
729 } 729 }
730 if (!mpi->planes[0]) { 730 if (!mpi->planes[0]) {
731 if (!err_shown) 731 if (!err_shown)
732 mp_msg(MSGT_VO, MSGL_ERR, "[gl] could not acquire buffer for dr\n" 732 mp_msg(MSGT_VO, MSGL_ERR, "[gl] could not acquire buffer for dr\n"
733 "Expect a _major_ speed penalty\n"); 733 "Expect a _major_ speed penalty\n");