diff options
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/qgl.h | 11 | ||||
-rw-r--r-- | src/renderer/tr_init.c | 8 | ||||
-rw-r--r-- | src/renderer/tr_local.h | 2 | ||||
-rw-r--r-- | src/renderer/tr_types.h | 2 |
4 files changed, 9 insertions, 14 deletions
diff --git a/src/renderer/qgl.h b/src/renderer/qgl.h index 8c92eb36..f83eaf31 100644 --- a/src/renderer/qgl.h +++ b/src/renderer/qgl.h @@ -29,12 +29,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "SDL_opengl.h" -extern PFNGLMULTITEXCOORD2FARBPROC qglMultiTexCoord2fARB; -extern PFNGLACTIVETEXTUREARBPROC qglActiveTextureARB; -extern PFNGLCLIENTACTIVETEXTUREARBPROC qglClientActiveTextureARB; +extern void (APIENTRYP qglActiveTextureARB) (GLenum texture); +extern void (APIENTRYP qglClientActiveTextureARB) (GLenum texture); +extern void (APIENTRYP qglMultiTexCoord2fARB) (GLenum target, GLfloat s, GLfloat t); + +extern void (APIENTRYP qglLockArraysEXT) (GLint first, GLsizei count); +extern void (APIENTRYP qglUnlockArraysEXT) (void); -extern PFNGLLOCKARRAYSEXTPROC qglLockArraysEXT; -extern PFNGLUNLOCKARRAYSEXTPROC qglUnlockArraysEXT; //=========================================================================== diff --git a/src/renderer/tr_init.c b/src/renderer/tr_init.c index d8e35ff7..1f3d19dc 100644 --- a/src/renderer/tr_init.c +++ b/src/renderer/tr_init.c @@ -81,7 +81,6 @@ cvar_t *r_nocurves; cvar_t *r_allowExtensions; cvar_t *r_ext_compressed_textures; -cvar_t *r_ext_gamma_control; cvar_t *r_ext_multitexture; cvar_t *r_ext_compiled_vertex_array; cvar_t *r_ext_texture_env_add; @@ -889,7 +888,6 @@ GfxInfo_f */ void GfxInfo_f( void ) { - cvar_t *sys_cpustring = ri.Cvar_Get( "sys_cpustring", "", 0 ); const char *enablestrings[] = { "disabled", @@ -906,7 +904,7 @@ void GfxInfo_f( void ) ri.Printf( PRINT_ALL, "GL_VERSION: %s\n", glConfig.version_string ); ri.Printf( PRINT_ALL, "GL_EXTENSIONS: %s\n", glConfig.extensions_string ); ri.Printf( PRINT_ALL, "GL_MAX_TEXTURE_SIZE: %d\n", glConfig.maxTextureSize ); - ri.Printf( PRINT_ALL, "GL_MAX_ACTIVE_TEXTURES_ARB: %d\n", glConfig.maxActiveTextures ); + ri.Printf( PRINT_ALL, "GL_MAX_TEXTURE_UNITS_ARB: %d\n", glConfig.numTextureUnits ); ri.Printf( PRINT_ALL, "\nPIXELFORMAT: color(%d-bits) Z(%d-bit) stencil(%d-bits)\n", glConfig.colorBits, glConfig.depthBits, glConfig.stencilBits ); ri.Printf( PRINT_ALL, "MODE: %d, %d x %d %s hz:", r_mode->integer, glConfig.vidWidth, glConfig.vidHeight, fsstrings[r_fullscreen->integer == 1] ); if ( glConfig.displayFrequency ) @@ -925,7 +923,6 @@ void GfxInfo_f( void ) { ri.Printf( PRINT_ALL, "GAMMA: software w/ %d overbright bits\n", tr.overbrightBits ); } - ri.Printf( PRINT_ALL, "CPU: %s\n", sys_cpustring->string ); // rendering primitives { @@ -991,10 +988,9 @@ void R_Register( void ) // r_allowExtensions = ri.Cvar_Get( "r_allowExtensions", "1", CVAR_ARCHIVE | CVAR_LATCH ); r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "0", CVAR_ARCHIVE | CVAR_LATCH ); - r_ext_gamma_control = ri.Cvar_Get( "r_ext_gamma_control", "1", CVAR_ARCHIVE | CVAR_LATCH ); r_ext_multitexture = ri.Cvar_Get( "r_ext_multitexture", "1", CVAR_ARCHIVE | CVAR_LATCH ); r_ext_compiled_vertex_array = ri.Cvar_Get( "r_ext_compiled_vertex_array", "1", CVAR_ARCHIVE | CVAR_LATCH); - r_ext_texture_env_add = ri.Cvar_Get( "r_ext_texture_env_add", "0", CVAR_ARCHIVE | CVAR_LATCH); + r_ext_texture_env_add = ri.Cvar_Get( "r_ext_texture_env_add", "1", CVAR_ARCHIVE | CVAR_LATCH); r_picmip = ri.Cvar_Get ("r_picmip", GENERIC_HW_R_PICMIP_DEFAULT, CVAR_ARCHIVE | CVAR_LATCH ); diff --git a/src/renderer/tr_local.h b/src/renderer/tr_local.h index 7c694759..a507e8a7 100644 --- a/src/renderer/tr_local.h +++ b/src/renderer/tr_local.h @@ -1035,8 +1035,6 @@ extern cvar_t *r_ignorehwgamma; // overrides hardware gamma capabilities extern cvar_t *r_allowExtensions; // global enable/disable of OpenGL extensions extern cvar_t *r_ext_compressed_textures; // these control use of specific extensions -extern cvar_t *r_ext_gamma_control; -extern cvar_t *r_ext_texenv_op; extern cvar_t *r_ext_multitexture; extern cvar_t *r_ext_compiled_vertex_array; extern cvar_t *r_ext_texture_env_add; diff --git a/src/renderer/tr_types.h b/src/renderer/tr_types.h index 3922f8ff..2d7c66d3 100644 --- a/src/renderer/tr_types.h +++ b/src/renderer/tr_types.h @@ -176,7 +176,7 @@ typedef struct { char extensions_string[BIG_INFO_STRING]; int maxTextureSize; // queried from GL - int maxActiveTextures; // multitexture ability + int numTextureUnits; // multitexture ability int colorBits, depthBits, stencilBits; |