summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-09 21:36:10 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-09 21:36:10 +0000
commita7eab84efa71d85e5a68f76f76e141a20f3c38cc (patch)
tree4e7f293bcf6da71d0c0bd155c9e025d9fb89a7f2 /libvo
parent89957c3f6ad431c04fb0e2305b17a335270bbf96 (diff)
downloadmpv-a7eab84efa71d85e5a68f76f76e141a20f3c38cc.tar.bz2
mpv-a7eab84efa71d85e5a68f76f76e141a20f3c38cc.tar.xz
Default to rectangle=1 on Mesa DRI R200 drivers, much faster and less buggy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31151 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 7f67ab016f..815fa27555 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -491,6 +491,8 @@ static void autodetectGlExtensions(void) {
force_pbo = is_ati;
if (use_rectangle == -1 && extensions && strstr(extensions, "_texture_non_power_of_two"))
use_rectangle = 0;
+ if (use_rectangle == -1 && extensions && strstr(extensions, "_texture_rectangle"))
+ use_rectangle = renderer && strstr(renderer, "Mesa DRI R200") ? 1 : 0;
if (use_osd == -1)
use_osd = mpglBindTexture != NULL;
if (use_yuv == -1)