mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Prevent black screen on Bakura level
..when enemies use their clocking devices Also use old style force effect for push/pull as the new effect doesn't actually work correctly (compared with flatscreen)
This commit is contained in:
parent
c5c6c1dfb6
commit
ec9aab5f6f
1 changed files with 5 additions and 1 deletions
|
@ -4054,7 +4054,8 @@ static void CG_ForcePushRefraction( vec3_t org, centity_t *cent )
|
|||
float alpha;
|
||||
int tDif;
|
||||
|
||||
if (!cg_renderToTextureFX.integer)
|
||||
//Use classic force push blur - refraction effect not working in GLES
|
||||
//if (!cg_renderToTextureFX.integer)
|
||||
{
|
||||
CG_ForcePushBlur(org);
|
||||
return;
|
||||
|
@ -4746,6 +4747,8 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen
|
|||
}
|
||||
else
|
||||
{
|
||||
//Causes screen to go black - just don't use this at all
|
||||
/*
|
||||
if (cg_renderToTextureFX.integer && cg_shadows.integer != 2 && cgs.glconfig.stencilBits >= 4)
|
||||
{
|
||||
cgi_R_SetRefractProp(1.0f, 0.0f, qfalse, qfalse); //don't need to do this every frame.. but..
|
||||
|
@ -4754,6 +4757,7 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen
|
|||
ent->customShader = 0;
|
||||
}
|
||||
else
|
||||
*/
|
||||
{ //stencil buffer's in use, sorry
|
||||
ent->renderfx = 0;//&= ~(RF_RGB_TINT|RF_ALPHA_FADE);
|
||||
ent->shaderRGBA[0] = ent->shaderRGBA[1] = ent->shaderRGBA[2] = ent->shaderRGBA[3] = 255;
|
||||
|
|
Loading…
Reference in a new issue