From 66bdca63eef7d4983ff74f18a2fc708af7a765b8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 17 Mar 2025 08:31:38 +0300 Subject: [PATCH] ref: gl: upload skybox texture object with >= 5800 name only with GL compatibility context, it's not needed on GLES --- ref/gl/gl_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_image.c b/ref/gl/gl_image.c index 947f1961..dfb9092f 100644 --- a/ref/gl/gl_image.c +++ b/ref/gl/gl_image.c @@ -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;