diff --git a/src/mygl.cpp b/src/mygl.cpp index 6357ce9..146a319 100644 --- a/src/mygl.cpp +++ b/src/mygl.cpp @@ -1,12 +1,12 @@ #include "mygl.h" namespace OpenArena { - void FreeGLTexture(GLuint texture) + void FreeGLTexture(GLuint& texture) { glDeleteTextures(1, &texture); } - bool LoadGLTexture(string fn, GLuint texture, GLuint mag, GLuint min) + bool LoadGLTexture(string fn, GLuint& texture, GLuint mag, GLuint min) { if(Right(tolower(fn), 4) == ".bmp") { diff --git a/src/mygl.h b/src/mygl.h index 4b8cac7..34087bc 100644 --- a/src/mygl.h +++ b/src/mygl.h @@ -34,7 +34,7 @@ extern OpenArena::Window g_Screen; //int InitGL(GLvoid); namespace OpenArena { - bool LoadGLTexture(string , GLuint, GLuint = GL_LINEAR, GLuint = GL_LINEAR); - void FreeGLTexture(GLuint); + bool LoadGLTexture(string , GLuint&, GLuint = GL_LINEAR, GLuint = GL_LINEAR); + void FreeGLTexture(GLuint&); }; #endif