hedgewars/uLandTexture.pas
changeset 3666 f9c8fc74ac93
parent 3615 b78d7959540a
child 3697 d5b30d6373fc
--- a/hedgewars/uLandTexture.pas	Fri Jul 23 22:14:56 2010 +0400
+++ b/hedgewars/uLandTexture.pas	Sun Jul 25 10:15:56 2010 -0400
@@ -101,7 +101,7 @@
                     begin
                     shouldUpdate:= false;
                     glBindTexture(GL_TEXTURE_2D, tex^.id);
-                    glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, TEXSIZE, TEXSIZE, GL_RGBA, GL_UNSIGNED_BYTE, Pixels(x, y));
+                    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, TEXSIZE, TEXSIZE, 0, GL_RGBA, GL_UNSIGNED_BYTE, Pixels(x,y)); 
                     end
 end;