mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed compilation with GCC/Clang
No more 'error: cannot jump from this goto statement to its label'
This commit is contained in:
parent
ed05a2edd3
commit
6a826f37bd
1 changed files with 2 additions and 1 deletions
|
@ -147,6 +147,7 @@ namespace swrenderer
|
||||||
decal_left = decal_pos - edge_left * angvec - ViewPos;
|
decal_left = decal_pos - edge_left * angvec - ViewPos;
|
||||||
decal_right = decal_pos + edge_right * angvec - ViewPos;
|
decal_right = decal_pos + edge_right * angvec - ViewPos;
|
||||||
|
|
||||||
|
CameraLight *cameraLight;
|
||||||
double texturemid;
|
double texturemid;
|
||||||
|
|
||||||
if (WallC.Init(decal_left, decal_right, TOO_CLOSE_Z))
|
if (WallC.Init(decal_left, decal_right, TOO_CLOSE_Z))
|
||||||
|
@ -253,7 +254,7 @@ namespace swrenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
light = lightleft + (x1 - savecoord.sx1) * lightstep;
|
light = lightleft + (x1 - savecoord.sx1) * lightstep;
|
||||||
CameraLight *cameraLight = CameraLight::Instance();
|
cameraLight = CameraLight::Instance();
|
||||||
if (cameraLight->fixedlightlev >= 0)
|
if (cameraLight->fixedlightlev >= 0)
|
||||||
R_SetColorMapLight((r_fullbrightignoresectorcolor) ? &FullNormalLight : usecolormap, 0, FIXEDLIGHT2SHADE(cameraLight->fixedlightlev));
|
R_SetColorMapLight((r_fullbrightignoresectorcolor) ? &FullNormalLight : usecolormap, 0, FIXEDLIGHT2SHADE(cameraLight->fixedlightlev));
|
||||||
else if (cameraLight->fixedcolormap != NULL)
|
else if (cameraLight->fixedcolormap != NULL)
|
||||||
|
|
Loading…
Reference in a new issue