equal
deleted
inserted
replaced
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) |