diff options
author | 2008-12-06 06:40:47 +0000 | |
---|---|---|
committer | 2008-12-06 06:40:47 +0000 | |
commit | 66fc5a8ffba1fb129d5ad6fd13ba3798db52bf61 (patch) | |
tree | b740ef1c5066f5e623108f9a067bf9f574bfbac1 | |
parent | 39f24a83c7720fb790c113d532e3c5f10fbb66a9 (diff) |
Reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28105 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index f0d96d876d..edd1fd84cd 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -797,17 +797,17 @@ static uint32_t draw_image(mp_image_t *mpi) { if (mpi->flags & MP_IMGFLAG_DIRECT) { if (mesa_buffer) glPixelStorei(GL_UNPACK_CLIENT_STORAGE_APPLE, 1); else { - intptr_t base = (intptr_t)planes[0]; - if (mpi_flipped) - base += (mpi->h - 1) * stride[0]; - planes[0] -= base; - planes[1] -= base; - planes[2] -= base; - BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); - UnmapBuffer(GL_PIXEL_UNPACK_BUFFER); - gl_bufferptr = NULL; - if (!(mpi->flags & MP_IMGFLAG_COMMON_PLANE)) - planes[0] = planes[1] = planes[2] = NULL; + intptr_t base = (intptr_t)planes[0]; + if (mpi_flipped) + base += (mpi->h - 1) * stride[0]; + planes[0] -= base; + planes[1] -= base; + planes[2] -= base; + BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); + UnmapBuffer(GL_PIXEL_UNPACK_BUFFER); + gl_bufferptr = NULL; + if (!(mpi->flags & MP_IMGFLAG_COMMON_PLANE)) + planes[0] = planes[1] = planes[2] = NULL; } slice = 0; // always "upload" full texture } |