*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1036 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+10
-1
@@ -3,7 +3,7 @@
|
||||
#include "cube.h"
|
||||
#include "bot/bot.h"
|
||||
|
||||
bool hasTE = false, hasMT = false;
|
||||
bool hasTE = false, hasMT = false, hasMDA = false;
|
||||
|
||||
// GL_ARB_multitexture
|
||||
PFNGLACTIVETEXTUREARBPROC glActiveTexture_ = NULL;
|
||||
@@ -11,6 +11,9 @@ PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture_ = NULL;
|
||||
PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f_ = NULL;
|
||||
PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f_ = NULL;
|
||||
|
||||
// GL_EXT_multi_draw_arrays
|
||||
PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArrays_ = NULL;
|
||||
|
||||
void *getprocaddress(const char *name)
|
||||
{
|
||||
return SDL_GL_GetProcAddress(name);
|
||||
@@ -60,6 +63,12 @@ void gl_init(int w, int h, int bpp, int depth, int fsaa)
|
||||
hasMT = true;
|
||||
}
|
||||
|
||||
if(strstr(exts, "GL_EXT_multi_draw_arrays"))
|
||||
{
|
||||
glMultiDrawArrays_ = (PFNGLMULTIDRAWARRAYSEXTPROC)getprocaddress("glMultiDrawArraysEXT");
|
||||
hasMDA = true;
|
||||
}
|
||||
|
||||
if(fsaa) glEnable(GL_MULTISAMPLE);
|
||||
|
||||
inittmus();
|
||||
|
||||
Reference in New Issue
Block a user