hedgewars/uStore.pas
changeset 3611 ed00aa2b339e
parent 3594 aeca3d8f1b29
child 3626 19f78afa0188
equal deleted inserted replaced
3610:8590424bdfb0 3611:ed00aa2b339e
   422                     Texture^.Scale:= 2
   422                     Texture^.Scale:= 2
   423                     end
   423                     end
   424                 else
   424                 else
   425                     begin
   425                     begin
   426                     Texture:= Surface2Tex(tmpsurf, false);
   426                     Texture:= Surface2Tex(tmpsurf, false);
   427                     if (ii = sprWater) and ((cReducedQuality and rq2DWater) = 0) then // HACK: We should include some sprite attribute to define the texture wrap directions
   427                     if (ii = sprWater) and ((cReducedQuality and (rq2DWater or rqClampLess)) = 0) then // HACK: We should include some sprite attribute to define the texture wrap directions
   428                     begin
   428                     begin
   429                         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   429                         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   430                     end;
   430                     end;
   431                 end;
   431                 end;
   432                 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, priority);
   432                 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, priority);