summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-30 16:06:10 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-30 16:14:55 +0300
commit2f1a518d4572bdad2cacd8e8bc25df93acffa9b4 (patch)
tree7529956ac00a3789a4aa3310fd6c80518a6773f5 /libvo
parent9b68a49d0132bbe08d3a9bf7a19276801ac415aa (diff)
parentd852b590a2aefad3c2050cf2741b4c51af8735ca (diff)
downloadmpv-2f1a518d4572bdad2cacd8e8bc25df93acffa9b4.tar.bz2
mpv-2f1a518d4572bdad2cacd8e8bc25df93acffa9b4.tar.xz
Merge svn changes up to r31211
The merged cache2.c changes are known to have problems. Will merge further fixes to them before merging this to the master branch.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c17
-rw-r--r--libvo/vo_md5sum.c2
2 files changed, 14 insertions, 5 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index efec18564b..c52ceabb5d 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -503,12 +503,19 @@ static void autodetectGlExtensions(void) {
ati_broken_pbo = ver && ver < 8395;
}
if (ati_hack == -1) ati_hack = ati_broken_pbo;
- 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"))
+ if (force_pbo == -1) {
+ force_pbo = 0;
+ if (extensions && strstr(extensions, "_pixel_buffer_object"))
+ force_pbo = is_ati;
+ }
+ if (use_rectangle == -1) {
use_rectangle = 0;
- if (use_rectangle == -1 && extensions && strstr(extensions, "_texture_rectangle"))
- use_rectangle = renderer && strstr(renderer, "Mesa DRI R200") ? 1 : 0;
+ if (extensions) {
+// if (strstr(extensions, "_texture_non_power_of_two"))
+ if (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)
diff --git a/libvo/vo_md5sum.c b/libvo/vo_md5sum.c
index 572f643a46..43703997b8 100644
--- a/libvo/vo_md5sum.c
+++ b/libvo/vo_md5sum.c
@@ -218,6 +218,8 @@ static uint32_t draw_image(mp_image_t *mpi)
h = h / 2;
for (i=0; i<h; i++) {
av_md5_update(md5_context, planeU + i * strideU, w);
+ }
+ for (i=0; i<h; i++) {
av_md5_update(md5_context, planeV + i * strideV, w);
}
av_md5_final(md5_context, md5sum);