# HG changeset patch # User reimar # Date 1228545696 0 # Node ID aea4c94e42a52bcf2eba63175a7ae591c6dd15d9 # Parent c7b912b0cbc29b7123a5d30758666f0404762a13 Move one ati_hack check to a better place. diff -r c7b912b0cbc2 -r aea4c94e42a5 libvo/vo_gl.c --- a/libvo/vo_gl.c Sat Dec 06 06:40:47 2008 +0000 +++ b/libvo/vo_gl.c Sat Dec 06 06:41:36 2008 +0000 @@ -777,7 +777,6 @@ unsigned char *planes[3]; mp_image_t mpi2 = *mpi; int w = mpi->w, h = mpi->h; - if (ati_hack) { w = texture_width; h = texture_height; } if (mpi->flags & MP_IMGFLAG_DRAW_CALLBACK) goto skip_upload; mpi2.flags = 0; mpi2.type = MP_IMGTYPE_TEMP; @@ -798,6 +797,7 @@ if (mesa_buffer) glPixelStorei(GL_UNPACK_CLIENT_STORAGE_APPLE, 1); else { intptr_t base = (intptr_t)planes[0]; + if (ati_hack) { w = texture_width; h = texture_height; } if (mpi_flipped) base += (mpi->h - 1) * stride[0]; planes[0] -= base;