15 Nov 2011

This commit is contained in:
g-cont 2011-11-15 00:00:00 +04:00 committed by Alibek Omarov
parent 1eb063a0ad
commit 778bf04c4e
3 changed files with 6 additions and 15 deletions

View File

@ -1117,10 +1117,10 @@ void CL_PrepVideo( void )
R_NewMap(); // tell the render about new map
V_SetupOverviewState(); // set overview bounds
Msg( "VidInit()\n" );
// must be called after lightmap loading!
clgame.dllFuncs.pfnVidInit();
Msg( "VidInit: end()\n" );
// release unused SpriteTextures
for( i = 1; i < MAX_IMAGES; i++ )
{
@ -1178,8 +1178,6 @@ void CL_PrepVideo( void )
cl.video_prepped = true;
cl.force_refdef = true;
Msg( "PrepVideo: end()\n" );
}
/*

View File

@ -740,6 +740,9 @@ void VID_StartupGamma( void )
size_t gamma_size;
byte *savedGamma;
// init gamma ramp
Q_memset( glState.stateRamp, 0, sizeof( glState.stateRamp ));
glConfig.deviceSupportsGamma = GetDeviceGammaRamp( glw_state.hDC, glState.stateRamp );
if( !glConfig.deviceSupportsGamma )
@ -756,9 +759,6 @@ void VID_StartupGamma( void )
return;
}
// init gamma ramp
Q_memset( glState.stateRamp, 0, sizeof( glState.stateRamp ));
// share this extension so engine can grab them
GL_SetExtension( GL_HARDWARE_GAMMA_CONTROL, glConfig.deviceSupportsGamma );
@ -1551,7 +1551,7 @@ void GL_InitExtensions( void )
GL_CheckExtension( "GL_EXT_compiled_vertex_array", compiledvertexarrayfuncs, "gl_cva_support", GL_CUSTOM_VERTEX_ARRAY_EXT );
if( !GL_Support( GL_CUSTOM_VERTEX_ARRAY_EXT ))
GL_CheckExtension( "GL_SGI_compiled_vertex_array", compiledvertexarrayfuncs, "gl_cva_support", GL_CUSTOM_VERTEX_ARRAY_EXT );
GL_CheckExtension( "GL_SGI_compiled_vertex_array", compiledvertexarrayfuncs, "gl_cva_support", GL_CUSTOM_VERTEX_ARRAY_EXT );
GL_CheckExtension( "GL_EXT_texture_edge_clamp", NULL, "gl_clamp_to_edge", GL_CLAMPTOEDGE_EXT );

View File

@ -61,13 +61,6 @@ extern int UI_IsVisible( void );
extern int UI_CreditsActive( void );
extern void UI_FinalCredits( void );
typedef void* dllhandle_t;
typedef struct dllfunction_s
{
const char *name;
void **funcvariable;
} dllfunction_t;
#include "cvardef.h"
// ScreenHeight returns the height of the screen, in pixels