Changed Fixed some apple stuff glGenTextures is still generating a bus error because we don't have a gl context yet.

This commit is contained in:
2006-06-18 21:42:51 -04:00
parent 9c87107dab
commit d70d3ac4b6
12 changed files with 259 additions and 51 deletions

View File

@@ -1,13 +1,12 @@
#include "../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")
{