Added unix shell script for extractfuncs.

Updated extractfuncs.exe from latest source.
Use new cvar modified functions to force vid_restart from vid_ref.
Renamed qglDrawRangeElementsEXT to qglDrawRangeElements in qgl_win.c (missed in last commit).
This commit is contained in:
Knightmare66 2021-10-11 16:27:13 -04:00
parent 4eea7036b8
commit 86b480711c
5 changed files with 10 additions and 15 deletions

Binary file not shown.

View file

@ -0,0 +1,6 @@
#!/bin/bash
f=`dirname $0`
cd $f
cd ../game
../tools_bin/extractfuncs *.c -o g_func_list.h g_func_decs.h
../tools_bin/extractfuncs *.c -t mmove_t -o g_mmove_list.h g_mmove_decs.h

View file

@ -25,8 +25,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../client/client.h"
#include "ui_local.h"
extern cvar_t *vid_ref;
void Menu_Video_Init (void);
/*
@ -117,7 +115,7 @@ static void M_PrepareVideoRefresh (void)
Cvar_Set( "gl_driver", "opengl32" );
// tell them they're modified so they refresh
vid_ref->modified = true;
Cvar_SetModified ("vid_ref", true);
}
static void M_ResetVideoDefaults (void *unused)

View file

@ -29,11 +29,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../client/client.h"
#include "ui_local.h"
extern cvar_t *vid_ref;
// these cvars are needed for checking if they've been modified
//extern cvar_t *r_intensity;
//extern cvar_t *r_font_upscale;
/*
=======================================================================
@ -222,9 +217,8 @@ static void M_AdvancedVideo_MenuSetValues (void)
static void M_AdvancedMenuApplyChanges (void *unused)
{
// update for modified r_intensity and r_stencilTwoSide
// if ( r_intensity->modified || r_font_upscale->modified )
if ( Cvar_IsModified("r_intensity") || Cvar_IsModified("r_font_upscale") )
vid_ref->modified = true;
Cvar_SetModified ("vid_ref", true);
}
//=======================================================================
@ -317,9 +311,6 @@ void Menu_Video_Advanced_Init (void)
};
int y = 0;
// r_intensity = Cvar_Get ("r_intensity", "1", 0);
// r_font_upscale = Cvar_Get ("r_font_upscale", "1", 0);
s_video_advanced_menu.x = SCREEN_WIDTH*0.5;
s_video_advanced_menu.y = SCREEN_HEIGHT*0.5 - 100;
s_video_advanced_menu.nitems = 0;

View file

@ -401,7 +401,7 @@ void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, co
void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
// Knightmare added
void ( APIENTRY * qglDrawRangeElementsEXT)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
void ( APIENTRY * qglDrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
void ( APIENTRY * qglLockArraysEXT) ( GLint start, GLsizei count );
void ( APIENTRY * qglUnlockArraysEXT) ( void );
@ -3509,7 +3509,7 @@ qboolean QGL_Init( const char *dllname )
qwglSetPixelFormat = GPA( "wglSetPixelFormat" );
qwglSwapBuffers = GPA( "wglSwapBuffers" );
qglDrawRangeElementsEXT = 0;
qglDrawRangeElements = 0;
qglLockArraysEXT = 0;
qglUnlockArraysEXT = 0;
qwglSwapIntervalEXT = 0;