summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-06 06:41:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-06 06:41:36 +0000
commit5daa1bf60f7e01331ff000cb31cbf67ae2f68a72 (patch)
tree52e75d340e2a3bf7646eb33e47d2f2402b1b35d4 /libvo
parent66fc5a8ffba1fb129d5ad6fd13ba3798db52bf61 (diff)
downloadmpv-5daa1bf60f7e01331ff000cb31cbf67ae2f68a72.tar.bz2
mpv-5daa1bf60f7e01331ff000cb31cbf67ae2f68a72.tar.xz
Move one ati_hack check to a better place.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28106 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index edd1fd84cd..f3aca7e1e1 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -777,7 +777,6 @@ static uint32_t draw_image(mp_image_t *mpi) {
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 @@ static uint32_t draw_image(mp_image_t *mpi) {
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;