hedgewars/uStore.pas
changeset 4748 ce9b48de1f52
parent 4603 d362ab6c7f53
child 4761 e73707bb99c0
--- a/hedgewars/uStore.pas	Tue Dec 28 20:44:06 2010 +0100
+++ b/hedgewars/uStore.pas	Tue Dec 28 23:53:37 2010 +0100
@@ -307,7 +307,7 @@
                 else
                 begin
                     Texture:= Surface2Tex(tmpsurf, false);
-                    if (ii = sprWater) and ((cReducedQuality and (rq2DWater or rqClampLess)) = 0) then // HACK: We should include some sprite attribute to define the texture wrap directions
+                    if ((ii = sprWater) or (ii = sprSDWater)) and ((cReducedQuality and (rq2DWater or rqClampLess)) = 0) then // HACK: We should include some sprite attribute to define the texture wrap directions
                         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
                 end;
                 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, priority);