Mercurial > mplayer.hg
changeset 28071:c7b912b0cbc2
Reindent
author | reimar |
---|---|
date | Sat, 06 Dec 2008 06:40:47 +0000 |
parents | 9c1fdc6420be |
children | aea4c94e42a5 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sat Dec 06 06:18:57 2008 +0000 +++ b/libvo/vo_gl.c Sat Dec 06 06:40:47 2008 +0000 @@ -797,17 +797,17 @@ 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 }