hedgewars/uStore.pas
changeset 4748 ce9b48de1f52
parent 4603 d362ab6c7f53
child 4761 e73707bb99c0
equal deleted inserted replaced
4745:b9a9f70948da 4748:ce9b48de1f52
   305                     Texture^.Scale:= 2
   305                     Texture^.Scale:= 2
   306                 end
   306                 end
   307                 else
   307                 else
   308                 begin
   308                 begin
   309                     Texture:= Surface2Tex(tmpsurf, false);
   309                     Texture:= Surface2Tex(tmpsurf, false);
   310                     if (ii = sprWater) and ((cReducedQuality and (rq2DWater or rqClampLess)) = 0) then // HACK: We should include some sprite attribute to define the texture wrap directions
   310                     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
   311                         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   311                         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   312                 end;
   312                 end;
   313                 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, priority);
   313                 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, priority);
   314                 if saveSurf then
   314                 if saveSurf then
   315                     Surface:= tmpsurf else SDL_FreeSurface(tmpsurf)
   315                     Surface:= tmpsurf else SDL_FreeSurface(tmpsurf)