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:
Alibek Omarov
2025-03-17 08:31:38 +03:00
parent d3f455649e
commit 66bdca63ee

View File

@@ -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;