summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 07:53:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 07:53:36 +0000
commitfcf655c88747d79249fd761e77ab3b242a3d3801 (patch)
tree66d282943551bf2eaff077af7c3e5baad5946aa2 /libvo/vo_gl.c
parentd34eccfec366300c81eee03179cd490f368cd2be (diff)
downloadmpv-fcf655c88747d79249fd761e77ab3b242a3d3801.tar.bz2
mpv-fcf655c88747d79249fd761e77ab3b242a3d3801.tar.xz
Move at-hack code a bit up for further changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27215 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index f40f13e719..5087997b11 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -688,14 +688,14 @@ static uint32_t get_image(mp_image_t *mpi) {
return VO_FALSE;
}
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
- if (!gl_buffer)
- GenBuffers(1, &gl_buffer);
- BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer);
if (ati_hack) {
int s = 1;
while (s < mpi->width) s *= 2;
mpi->width = s;
}
+ if (!gl_buffer)
+ GenBuffers(1, &gl_buffer);
+ BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer);
mpi->stride[0] = mpi->width * mpi->bpp / 8;
if (mpi->stride[0] * mpi->height > gl_buffersize) {
BufferData(GL_PIXEL_UNPACK_BUFFER, mpi->stride[0] * mpi->height,