changeset 28153:1c34bd14e6b6

Warn when using features that are broken due to ATI driver bugs.
author reimar
date Tue, 23 Dec 2008 20:56:45 +0000
parents 712225607a2c
children bdcb43023b42
files libvo/vo_gl.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Dec 23 19:31:56 2008 +0000
+++ b/libvo/vo_gl.c	Tue Dec 23 20:56:45 2008 +0000
@@ -408,6 +408,9 @@
   if (ati_hack      == -1) ati_hack      = is_ati;
   if (force_pbo     == -1) force_pbo     = strstr(extensions, "_pixel_buffer_object")      ? is_ati : 0;
   if (use_rectangle == -1) use_rectangle = strstr(extensions, "_texture_non_power_of_two") ?      0 : 0;
+  if (is_ati && (lscale == 1 || lscale == 2 || cscale == 1 || cscale == 2))
+    mp_msg(MSGT_VO, MSGL_WARN, "Selected scaling mode may be broken on ATI cards.\n"
+             "Tell _them_ to fix GL_REPEAT if you have issues.\n");
 }
 
 /**