This patch spawns from this game engine issue:
[#7113] GE crash pressing as soon as P on 64 bit Note: glext.h has been removed from the source If you get errors compiling with it you have 2 options download/install glext.h (preferred method) or set WITH_BF_GLEXT=false If your a user and having problems with game engine try setting the env var: WITHOUT_GLEXT 1 Kent
This commit is contained in:
@@ -51,6 +51,8 @@
|
||||
/* #endif */
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#pragma warning (disable : 4786)
|
||||
#endif //WIN32
|
||||
@@ -335,16 +337,18 @@ static PyObject *pyPrintExt(PyObject *,PyObject *,PyObject *)
|
||||
pprint("");
|
||||
}
|
||||
#endif
|
||||
#ifdef GL_ARB_multitexture
|
||||
support = ext._ARB_multitexture;
|
||||
count = 1;
|
||||
pprint(" GL_ARB_multitexture supported? "<< (support?"yes.":"no."));
|
||||
if(support){
|
||||
pprint(" ----------Details----------");
|
||||
int units=0;
|
||||
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, (GLint*)&units);
|
||||
pprint(" Max texture units available. " << units);
|
||||
pprint("");
|
||||
#if defined(GL_ARB_multitexture) && defined(WITH_GLEXT)
|
||||
if (!getenv("WITHOUT_GLEXT")) {
|
||||
support = ext._ARB_multitexture;
|
||||
count = 1;
|
||||
pprint(" GL_ARB_multitexture supported? "<< (support?"yes.":"no."));
|
||||
if(support){
|
||||
pprint(" ----------Details----------");
|
||||
int units=0;
|
||||
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, (GLint*)&units);
|
||||
pprint(" Max texture units available. " << units);
|
||||
pprint("");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef GL_ARB_texture_env_combine
|
||||
|
||||
Reference in New Issue
Block a user