Added register_combiners2 support
This commit is contained in:
parent
3af378bcd8
commit
2b33b9f0d6
1 changed files with 17 additions and 5 deletions
22
gl_common.c
22
gl_common.c
|
@ -282,6 +282,13 @@ void CheckSpecularBumpMappingExtensions(void)
|
|||
SAFE_GET_PROC (qglGetFinalCombinerInputParameterfvNV,PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC,"glGetFinalCombinerInputfvNV");
|
||||
SAFE_GET_PROC (qglGetFinalCombinerInputParameterivNV,PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC,"glGetFinalCombinerInputivNV");
|
||||
}
|
||||
|
||||
//PENTA: Cg uses register combiners2 also, they only add some constant registers tough...
|
||||
if (strstr(gl_extensions, "GL_NV_register_combiners2")) {
|
||||
SAFE_GET_PROC (qglCombinerStageParameterfvNV,PFNGLCOMBINERSTAGEPARAMETERFVNVPROC,"glCombinerStageParameterfvNV");
|
||||
SAFE_GET_PROC (qglGetCombinerStageParameterfvNV,PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC,"glGetCombinerStageParameterfvNV");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -607,11 +614,15 @@ void VID_Init8bitPalette(void)
|
|||
if (COM_CheckParm ("-no8bit"))
|
||||
return;
|
||||
|
||||
|
||||
SAFE_GET_PROC (qglColorTableEXT,GLCOLORTABLEEXTPFN,"glColorTableEXT");
|
||||
|
||||
|
||||
SAFE_GET_PROC (qglColorTableEXT,GLCOLORTABLEEXTPFN,"glColorTableEXT");
|
||||
|
||||
|
||||
if (strstr (gl_extensions, "GL_EXT_shared_texture_palette") && qglColorTableEXT )
|
||||
|
||||
{
|
||||
|
||||
if (strstr (gl_extensions, "GL_EXT_shared_texture_palette") && qglColorTableEXT )
|
||||
{
|
||||
char thePalette[256*3];
|
||||
char *oldPalette, *newPalette;
|
||||
|
||||
|
@ -626,7 +637,8 @@ void VID_Init8bitPalette(void)
|
|||
oldPalette++;
|
||||
}
|
||||
qglColorTableEXT(GL_SHARED_TEXTURE_PALETTE_EXT, GL_RGB, 256, GL_RGB, GL_UNSIGNED_BYTE, (void *) thePalette);
|
||||
is8bit = true;
|
||||
is8bit = true;
|
||||
|
||||
}
|
||||
/*
|
||||
// 3DFX stuff
|
||||
|
|
Loading…
Reference in a new issue