diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-08-16 10:19:42 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-08-16 10:19:42 +0000 |
commit | 1526e22e4ff29153e9c127081e8ea8d9e2f33b8c (patch) | |
tree | b361766433d4a7b4a111865afd52803e2bbf7754 /source/qgl_api.c | |
parent | e826e5f176f21cd18b3bbc22887a266835ada57c (diff) |
Split some monolithic include files into smaller ones.
Use single BSP models cache for refresh and collision subsystems.
Refresh libraries may not longer be dynamically loaded.
Made gi.TagMalloc use separate tag namespace to avoid
conflicts with engine reserverd tags.
Fixed listing order of MVD channels in chooser menu.
A lot of misc changes... MSVC build is definitely broken now.
Diffstat (limited to 'source/qgl_api.c')
-rw-r--r-- | source/qgl_api.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/qgl_api.c b/source/qgl_api.c index 122a45b..5494b83 100644 --- a/source/qgl_api.c +++ b/source/qgl_api.c @@ -28,12 +28,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ** QGL_Shutdown() - unloads libraries, NULLs function pointers */ -#include <config.h> -#include "qgl_local.h" -#include "q_shared.h" -#include "com_public.h" +#include "com_local.h" #include "in_public.h" #include "vid_public.h" +#include "qgl_local.h" #include "qgl_api.h" static FILE *log_fp; @@ -416,7 +414,7 @@ PFNGLGETBUFFERPOINTERVPROC qglGetBufferPointervARB; #ifdef _WIN32 PROC ( WINAPI * qglGetProcAddress )( LPCSTR ); #else -void *qglGetProcAddress( const char *symbol ) { return video.GetProcAddr( symbol ); } +void *qglGetProcAddress( const char *symbol ) { return VID_GetProcAddr( symbol ); } #endif // ========================================================== @@ -3021,7 +3019,7 @@ void QGL_Shutdown( void ) { #endif } -#define GPA( a ) video.GetProcAddr( a ) +#define GPA( a ) VID_GetProcAddr( a ) /* @@ -3396,7 +3394,7 @@ void QGL_EnableLogging( qboolean enable ) asctime( newtime ); Com_sprintf( buffer, sizeof( buffer ), "%s/qgl.log", - cvar.VariableString( "basedir" ) ); + Cvar_VariableString( "basedir" ) ); log_fp = fopen( buffer, "w" ); if( !log_fp ) { return; |