flagging for "reduced quality". Clamping cuts frame rate in half in software rendering on my sucky laptop
authornemo
Fri, 24 Jul 2009 16:43:19 +0000
changeset 2271 ca0754f0f42b
parent 2270 71e67531f905
child 2272 c59656d7b1de
flagging for "reduced quality". Clamping cuts frame rate in half in software rendering on my sucky laptop
hedgewars/uMisc.pas
--- a/hedgewars/uMisc.pas	Fri Jul 24 14:20:19 2009 +0000
+++ b/hedgewars/uMisc.pas	Fri Jul 24 16:43:19 2009 +0000
@@ -336,8 +336,11 @@
 glBindTexture(GL_TEXTURE_2D, NewTexture^.id);
 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, buf);
 
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+if not cReducedQuality then
+    begin
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)
+    end;
 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
 end;