mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Very tiny fix
This commit is contained in:
parent
6573e94e3a
commit
557e29b83c
1 changed files with 4 additions and 15 deletions
|
|
@ -1649,26 +1649,15 @@ static void RenderDomeForReal(INT32 skytexture)
|
||||||
|
|
||||||
EXPORT void HWRAPI(RenderSkyDome) (INT32 tex, INT32 texture_width, INT32 texture_height, FTransform transform)
|
EXPORT void HWRAPI(RenderSkyDome) (INT32 tex, INT32 texture_width, INT32 texture_height, FTransform transform)
|
||||||
{
|
{
|
||||||
GLint shading_mode = GL_FLAT;
|
SetBlend(PF_Translucent|PF_NoDepthTest|PF_Modulated);
|
||||||
pglGetIntegerv(GL_SHADE_MODEL, &shading_mode);
|
SetTransform(&transform);
|
||||||
pglShadeModel(GL_SMOOTH);
|
|
||||||
|
|
||||||
pglDepthMask(false);
|
|
||||||
pglDisable(GL_DEPTH_TEST);
|
|
||||||
pglDisable(GL_ALPHA_TEST);
|
|
||||||
|
|
||||||
SetBlend(PF_Translucent|PF_Clip|PF_NoZClip|PF_NoDepthTest|PF_Modulated);
|
|
||||||
|
|
||||||
texw = texture_width;
|
texw = texture_width;
|
||||||
texh = texture_height;
|
texh = texture_height;
|
||||||
SetTransform(&transform);
|
|
||||||
RenderDomeForReal(tex);
|
RenderDomeForReal(tex);
|
||||||
|
|
||||||
pglEnable(GL_ALPHA_TEST);
|
// HWR_DrawSkyBackground left no blend flags after rendering the sky
|
||||||
pglEnable(GL_DEPTH_TEST);
|
SetBlend(0);
|
||||||
pglDepthMask(true);
|
|
||||||
|
|
||||||
pglShadeModel(shading_mode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue