hedgewars/uLandTexture.pas
changeset 1808 2fc248766d57
parent 1807 795f97007833
child 1852 fa04a27005c3
--- a/hedgewars/uLandTexture.pas	Wed Feb 18 16:46:27 2009 +0000
+++ b/hedgewars/uLandTexture.pas	Wed Feb 18 16:49:27 2009 +0000
@@ -76,6 +76,7 @@
 			with LandTextures[x, y] do
 				if shouldUpdate then
 					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));
 					end