Changed Moved resources around
~G2k
This commit is contained in:
11
src/mygl.cpp
11
src/mygl.cpp
@@ -1,12 +1,13 @@
|
||||
#include "../include/mygl.h"
|
||||
|
||||
#include "mygl.h"
|
||||
namespace OpenArena
|
||||
{
|
||||
void FreeGLTexture(GLuint texture)
|
||||
void FreeGLTexture(GLuint& texture)
|
||||
{
|
||||
glDeleteTextures(1, 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")
|
||||
{
|
||||
@@ -63,4 +64,4 @@ namespace OpenArena
|
||||
}
|
||||
};
|
||||
|
||||
OpenArena::Window g_Screen;
|
||||
OpenArena::Window* g_Screen = NULL;
|
||||
|
||||
Reference in New Issue
Block a user