diff --git a/engine/ref_api.h b/engine/ref_api.h index ea071af9..a44a0024 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -540,8 +540,6 @@ typedef struct ref_interface_s qboolean (*R_AddEntity)( struct cl_entity_s *clent, int type ); void (*R_ProcessEntData)( qboolean allocate, cl_entity_t *entities, unsigned int max_entities ); - void (*R_Flush)( unsigned int flush_flags ); - // debug void (*R_ShowTextures)( void ); @@ -553,7 +551,6 @@ typedef struct ref_interface_s // 2D void (*R_Set2DMode)( qboolean enable ); - void (*R_DrawStretchRaw)( float x, float y, float w, float h, int cols, int rows, const byte *data, qboolean dirty ); void (*R_DrawStretchPic)( float x, float y, float w, float h, float s1, float t1, float s2, float t2, int texnum ); void (*FillRGBA)( int rendermode, float x, float y, float w, float h, byte r, byte g, byte b, byte a ); // in screen space int (*WorldToScreen)( const vec3_t world, vec3_t screen ); // Returns 1 if it's z clipped @@ -644,7 +641,6 @@ typedef struct ref_interface_s // vgui drawing implementation void (*VGUI_SetupDrawing)( qboolean rect ); - void (*VGUI_UploadTextureBlock)( int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight ); } ref_interface_t; typedef int (*REFAPI)( int version, ref_interface_t *pFunctionTable, ref_api_t* engfuncs, ref_globals_t *pGlobals ); diff --git a/ref/gl/gl_context.c b/ref/gl/gl_context.c index 03e74634..23a56a8c 100644 --- a/ref/gl/gl_context.c +++ b/ref/gl/gl_context.c @@ -319,11 +319,6 @@ static void R_ProcessEntData( qboolean allocate, cl_entity_t *entities, unsigned gEngfuncs.drawFuncs->R_ProcessEntData( allocate ); } -static void GAME_EXPORT R_Flush( unsigned int flags ) -{ - // stub -} - /* ============= R_SetSkyCloudsTextures @@ -377,11 +372,6 @@ static qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_ return ret; } -static void GAME_EXPORT VGUI_UploadTextureBlock( int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight ) -{ - pglTexSubImage2D( GL_TEXTURE_2D, 0, drawX, drawY, blockWidth, blockHeight, GL_RGBA, GL_UNSIGNED_BYTE, rgba ); -} - static void GAME_EXPORT VGUI_SetupDrawing( qboolean rect ) { pglEnable( GL_BLEND ); @@ -526,7 +516,6 @@ const ref_interface_t gReffuncs = R_AddEntity, R_ProcessEntData, - R_Flush, R_ShowTextures, @@ -604,6 +593,5 @@ const ref_interface_t gReffuncs = R_FillTriAPI, VGUI_SetupDrawing, - VGUI_UploadTextureBlock, }; diff --git a/ref/null/r_context.c b/ref/null/r_context.c index b0216ccd..32914200 100644 --- a/ref/null/r_context.c +++ b/ref/null/r_context.c @@ -440,11 +440,6 @@ static void VGUI_SetupDrawing( qboolean rect ) ; } -static void VGUI_UploadTextureBlock( int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight ) -{ - ; -} - static const ref_interface_t gReffuncs = { .R_Init = R_Init, @@ -471,7 +466,6 @@ static const ref_interface_t gReffuncs = .R_AddEntity = R_AddEntity, .R_ProcessEntData = R_ProcessEntData, - .R_Flush = R_SimpleStubUInt, .R_ShowTextures = R_SimpleStub, @@ -549,7 +543,6 @@ static const ref_interface_t gReffuncs = .R_FillTriAPI = R_FillTriAPI, .VGUI_SetupDrawing = VGUI_SetupDrawing, - .VGUI_UploadTextureBlock = VGUI_UploadTextureBlock, }; int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs, ref_globals_t *globals ); diff --git a/ref/soft/r_context.c b/ref/soft/r_context.c index a247002d..37c85c4a 100644 --- a/ref/soft/r_context.c +++ b/ref/soft/r_context.c @@ -263,11 +263,6 @@ static void GAME_EXPORT R_ProcessEntData( qboolean allocate, cl_entity_t *entiti tr.max_entities = max_entities; } -static void GAME_EXPORT R_Flush( unsigned int flags ) -{ - // stub -} - // stubs static void GAME_EXPORT GL_SetTexCoordArrayMode( uint mode ) @@ -377,10 +372,6 @@ byte *GAME_EXPORT Mod_GetCurrentVis( void ) return NULL; } -static void GAME_EXPORT VGUI_UploadTextureBlock( int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight ) -{ -} - static void GAME_EXPORT VGUI_SetupDrawing( qboolean rect ) { } @@ -464,7 +455,6 @@ const ref_interface_t gReffuncs = R_AddEntity, R_ProcessEntData, - R_Flush, R_ShowTextures, @@ -542,6 +532,5 @@ const ref_interface_t gReffuncs = R_FillTriAPI, VGUI_SetupDrawing, - VGUI_UploadTextureBlock, };