- only #define GL constant if not already present (most likely only a problem on Windows.)

This commit is contained in:
Christoph Oelckers 2015-02-27 13:39:00 +01:00 committed by Daniel Gibson
parent 0d9a96bcc8
commit d60dfa63bc

View file

@ -625,7 +625,10 @@ R_BuildPalettedTexture(unsigned char *paletted_texture, unsigned char *scaled,
}
}
// Windows headers don't define this constant.
#ifndef GL_GENERATE_MIPMAP
#define GL_GENERATE_MIPMAP 0x8191
#endif
qboolean
R_Upload32Native(unsigned *data, int width, int height, qboolean mipmap)