X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects.cpp;h=cc6008b409cf7389ccc68a5ffc16c9c0f274aaea;hb=c33352410441ce5656f7c65eea696b5f799fefeb;hp=e5d26898ad07f01bad09545d65f1d0d5aaeb2ba6;hpb=36cc3af3e5074215817ddee16defde754e2ad67f;p=lugaru.git diff --git a/Source/Objects.cpp b/Source/Objects.cpp index e5d2689..cc6008b 100644 --- a/Source/Objects.cpp +++ b/Source/Objects.cpp @@ -770,9 +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 ); };