--- a/hedgewars/uMisc.pas Tue Feb 05 18:25:46 2008 +0000
+++ b/hedgewars/uMisc.pas Thu Feb 21 18:48:16 2008 +0000
@@ -291,7 +291,7 @@
if (surf^.format^.BytesPerPixel = 3) then mode:= GL_RGB else
if (surf^.format^.BytesPerPixel = 4) then mode:= GL_RGBA else
begin
- TryDo(false, 'Surface2Tex: BytePerPixel not in [3, 4', false);
+ TryDo(false, 'Surface2Tex: BytePerPixel not in [3, 4]', true);
Surface2Tex^.id:= 0;
exit
end;
@@ -323,8 +323,8 @@
if SDL_MustLock(surf) then
SDL_UnlockSurface(surf);
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
+glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
end;
procedure FreeTexture(tex: PTexture);