hedgewars/uStore.pas
changeset 2603 abed6070a669
parent 2602 3deb9ff104da
child 2610 8c00c1ee6cac
--- a/hedgewars/uStore.pas	Thu Nov 05 20:47:42 2009 +0000
+++ b/hedgewars/uStore.pas	Thu Nov 05 20:48:13 2009 +0000
@@ -1100,7 +1100,20 @@
 
 	
 {$IFNDEF IPHONEOS}
-//SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
+// since ATI seems to be unable to provide proper texture filtering/quality,
+// do not even try to load the extension on ATI cards
+
+{$IFDEF DARWIN}
+if true then
+{$ELSE}
+if cGPUVendor <> gvATI then
+{$ENDIF}
+	SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two')
+{$IFDEF DEBUGFILE}
+else
+	AddFileLog('OpenGL: Skipped extension GL_ARB_texture_non_power_of_two due to ATI card')
+{$ENDIF}
+; // do not touch this line! :)
 {$ENDIF}
 
 // set view port to whole window