]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Objects.cpp
More effort.
[lugaru.git] / Source / Objects.cpp
index e5d26898ad07f01bad09545d65f1d0d5aaeb2ba6..cc6008b409cf7389ccc68a5ffc16c9c0f274aaea 100644 (file)
@@ -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 );
 };