mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-10 23:27:53 +00:00
ref: gl: switch texture object allocation to GenTextures usage
This should fix most overlay programs but I only tested it on MangoHud
This commit is contained in:
parent
a3ab04e0cb
commit
68ff265e8d
@ -1418,9 +1418,11 @@ static gl_texture_t *GL_AllocTexture( const char *name, texFlags_t flags )
|
||||
|
||||
// copy initial params
|
||||
Q_strncpy( tex->name, name, sizeof( tex->name ));
|
||||
|
||||
if( FBitSet( flags, TF_SKYSIDE ))
|
||||
tex->texnum = tr.skyboxbasenum++;
|
||||
else tex->texnum = i; // texnum is used for fast acess into gl_textures array too
|
||||
else pglGenTextures( 1, &tex->texnum );
|
||||
|
||||
tex->flags = flags;
|
||||
|
||||
// add to hash table
|
||||
|
Loading…
Reference in New Issue
Block a user