diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-09 21:29:21 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-09 21:29:21 +0000 |
commit | 89957c3f6ad431c04fb0e2305b17a335270bbf96 (patch) | |
tree | 29755fdd16db3ffba58ba6f162fb69c9328894b6 /libvo/vo_gl.c | |
parent | c9123e5a2d842d98add32c0a965930ee162845af (diff) | |
download | mpv-89957c3f6ad431c04fb0e2305b17a335270bbf96.tar.bz2 mpv-89957c3f6ad431c04fb0e2305b17a335270bbf96.tar.xz |
Minor code cleanup.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31150 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index af27bc4beb..7f67ab016f 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -487,10 +487,10 @@ static void autodetectGlExtensions(void) { ati_broken_pbo = ver && ver < 8395; } if (ati_hack == -1) ati_hack = ati_broken_pbo; - if (extensions && force_pbo == -1) - force_pbo = strstr(extensions, "_pixel_buffer_object") ? is_ati : 0; - if (extensions && use_rectangle == -1) - use_rectangle = strstr(extensions, "_texture_non_power_of_two") ? 0 : 0; + if (force_pbo == -1 && extensions && strstr(extensions, "_pixel_buffer_object")) + force_pbo = is_ati; + if (use_rectangle == -1 && extensions && strstr(extensions, "_texture_non_power_of_two")) + use_rectangle = 0; if (use_osd == -1) use_osd = mpglBindTexture != NULL; if (use_yuv == -1) |