Mercurial > mplayer.hg
changeset 28068:279cc24cb5cc
Fix indentation
author | reimar |
---|---|
date | Fri, 05 Dec 2008 22:35:24 +0000 |
parents | 7511f7328d93 |
children | 74b62cf052af |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Fri Dec 05 22:16:45 2008 +0000 +++ b/libvo/vo_gl.c Fri Dec 05 22:35:24 2008 +0000 @@ -714,18 +714,18 @@ #endif mpi->planes[0] = mesa_bufferptr; } else { - if (!gl_buffer) - GenBuffers(1, &gl_buffer); - BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); - if (needed_size > gl_buffersize) { - gl_buffersize = needed_size; - BufferData(GL_PIXEL_UNPACK_BUFFER, gl_buffersize, - NULL, GL_DYNAMIC_DRAW); - } - if (!gl_bufferptr) - gl_bufferptr = MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); - mpi->planes[0] = gl_bufferptr; - BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); + if (!gl_buffer) + GenBuffers(1, &gl_buffer); + BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); + if (needed_size > gl_buffersize) { + gl_buffersize = needed_size; + BufferData(GL_PIXEL_UNPACK_BUFFER, gl_buffersize, + NULL, GL_DYNAMIC_DRAW); + } + if (!gl_bufferptr) + gl_bufferptr = MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); + mpi->planes[0] = gl_bufferptr; + BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); } if (!mpi->planes[0]) { if (!err_shown)