Fix a bug with updating
authorunc0rr
Wed, 18 Feb 2009 16:49:27 +0000
changeset 1808 2fc248766d57
parent 1807 795f97007833
child 1809 77923087a1ce
Fix a bug with updating
hedgewars/uLandTexture.pas
--- 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