Browse Source

Workaround core context issues

pull/2/head
mittorn 9 months ago committed by Alibek Omarov
parent
commit
eb23b226cc
  1. 2
      ref/gl/gl_image.c
  2. 7
      ref/gl/gl_warp.c

2
ref/gl/gl_image.c

@ -1418,7 +1418,7 @@ static gl_texture_t *GL_AllocTexture( const char *name, texFlags_t flags ) @@ -1418,7 +1418,7 @@ 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 ))
if( FBitSet( flags, TF_SKYSIDE ) && glConfig.context != CONTEXT_TYPE_GL_CORE )
tex->texnum = tr.skyboxbasenum++;
else
{

7
ref/gl/gl_warp.c

@ -761,11 +761,8 @@ void EmitWaterPolys( msurface_t *warp, qboolean reverse ) @@ -761,11 +761,8 @@ void EmitWaterPolys( msurface_t *warp, qboolean reverse )
float s, t, os, ot;
glpoly_t *p;
int i;
#ifndef XASH_GLES
const qboolean useQuads = FBitSet( warp->flags, SURF_DRAWTURB_QUADS );
#else
const qboolean useQuads = false; // TODO: figure out why
#endif
const qboolean useQuads = FBitSet( warp->flags, SURF_DRAWTURB_QUADS ) && glConfig.context == CONTEXT_TYPE_GL;
if( !warp->polys ) return;

Loading…
Cancel
Save