X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects.cpp;h=cc6008b409cf7389ccc68a5ffc16c9c0f274aaea;hb=c33352410441ce5656f7c65eea696b5f799fefeb;hp=67feaacc61a277f8c4b5defdd44fba60adcb1849;hpb=0cca0c495c7dc29d134a10d7eed5de1f377c99bf;p=lugaru.git diff --git a/Source/Objects.cpp b/Source/Objects.cpp index 67feaac..cc6008b 100644 --- a/Source/Objects.cpp +++ b/Source/Objects.cpp @@ -770,8 +770,9 @@ Objects::Objects() Objects::~Objects() { - if (boxtextureptr) glDeleteTextures( 1, (const unsigned long *)&boxtextureptr ); - if (treetextureptr) glDeleteTextures( 1, (const unsigned long *)&treetextureptr ); - if (bushtextureptr) glDeleteTextures( 1, (const unsigned long *)&bushtextureptr ); - if (rocktextureptr) glDeleteTextures( 1, (const unsigned long *)&rocktextureptr ); + if (boxtextureptr) glDeleteTextures( 1, &boxtextureptr ); + if (treetextureptr) glDeleteTextures( 1, &treetextureptr ); + if (bushtextureptr) glDeleteTextures( 1, &bushtextureptr ); + if (rocktextureptr) glDeleteTextures( 1, &rocktextureptr ); }; +