# HG changeset patch # User unc0rr # Date 1234975767 0 # Node ID 2fc248766d578d4cd10534a1a7150967d26a6a2d # Parent 795f9700783365e52cbb37f29c63458c0fde3f28 Fix a bug with updating diff -r 795f97007833 -r 2fc248766d57 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