X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkybox.cpp;h=8920263558e643265e0d104e7b09d4b0a5d83c7e;hb=c95576958a42b797cda09eb8935db8fd96783e52;hp=6d074ced1557b0319f4363f9106c90337390d5f7;hpb=0cca0c495c7dc29d134a10d7eed5de1f377c99bf;p=lugaru.git diff --git a/Source/Skybox.cpp b/Source/Skybox.cpp index 6d074ce..8920263 100644 --- a/Source/Skybox.cpp +++ b/Source/Skybox.cpp @@ -1,4 +1,4 @@ -#include "skybox.h" +#include "Skybox.h" #include "Game.h" extern float viewdistance; @@ -347,12 +347,13 @@ SkyBox::SkyBox() } SkyBox::~SkyBox() { - if (front) glDeleteTextures( 1, (const unsigned long *)&front ); - if (left) glDeleteTextures( 1, (const unsigned long *)&left ); - if (back) glDeleteTextures( 1, (const unsigned long *)&back ); - if (right) glDeleteTextures( 1, (const unsigned long *)&right ); - if (up) glDeleteTextures( 1, (const unsigned long *)&up ); - if (down) glDeleteTextures( 1, (const unsigned long *)&down ); - if (cloud) glDeleteTextures( 1, (const unsigned long *)&cloud ); - if (reflect) glDeleteTextures( 1, (const unsigned long *)&reflect ); + if (front) glDeleteTextures( 1, &front ); + if (left) glDeleteTextures( 1, &left ); + if (back) glDeleteTextures( 1, &back ); + if (right) glDeleteTextures( 1, &right ); + if (up) glDeleteTextures( 1, &up ); + if (down) glDeleteTextures( 1, &down ); + if (cloud) glDeleteTextures( 1, &cloud ); + if (reflect) glDeleteTextures( 1, &reflect ); }; +