mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: upload skybox texture object with >= 5800 name only with GL compatibility context, it's not needed on GLES
This commit is contained in:
@@ -1392,7 +1392,7 @@ GL_AllocTexture
|
||||
*/
|
||||
static gl_texture_t *GL_AllocTexture( const char *name, texFlags_t flags )
|
||||
{
|
||||
const qboolean skyboxhack = FBitSet( flags, TF_SKYSIDE ) && glConfig.context != CONTEXT_TYPE_GL_CORE;
|
||||
const qboolean skyboxhack = FBitSet( flags, TF_SKYSIDE ) && glConfig.context == CONTEXT_TYPE_GL;
|
||||
gl_texture_t *tex = NULL;
|
||||
GLuint texnum = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user