mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: bring back texture replacement
This commit is contained in:
@@ -398,6 +398,14 @@ static void GAME_EXPORT VGUI_SetupDrawing( qboolean rect )
|
||||
{
|
||||
}
|
||||
|
||||
static void GAME_EXPORT R_OverrideTextureSourceSize( unsigned int texnum, uint srcWidth, uint srcHeight )
|
||||
{
|
||||
image_t *tx = R_GetTexture( texnum );
|
||||
|
||||
tx->srcWidth = srcWidth;
|
||||
tx->srcHeight = srcHeight;
|
||||
}
|
||||
|
||||
static const char *R_GetConfigName( void )
|
||||
{
|
||||
return "ref_soft"; // software specific cvars will go to ref_soft.cfg
|
||||
@@ -498,6 +506,7 @@ static ref_interface_t gReffuncs =
|
||||
GL_LoadTextureArray,
|
||||
GL_CreateTextureArray,
|
||||
GL_FreeTexture,
|
||||
R_OverrideTextureSourceSize,
|
||||
|
||||
DrawSingleDecal,
|
||||
R_DecalSetupVerts,
|
||||
|
||||
Reference in New Issue
Block a user