File tree 1 file changed +4
-6
lines changed 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2133,7 +2133,7 @@ void R_StudioDrawVBOMesh_DrawPass(
2133
2133
}
2134
2134
}
2135
2135
2136
- if (!(StudioProgramState & (STUDIO_ALPHA_BLEND_ENABLED | STUDIO_ADDITIVE_BLEND_ENABLED)) && (*currententity)->curstate .rendermode == kRenderTransAdd )
2136
+ if (!(StudioProgramState & (STUDIO_ALPHA_BLEND_ENABLED | STUDIO_ADDITIVE_BLEND_ENABLED)) && (*currententity)->curstate .rendermode == kRenderTransAdd )
2137
2137
{
2138
2138
StudioProgramState |= STUDIO_ADDITIVE_BLEND_ENABLED;
2139
2139
}
@@ -2143,7 +2143,7 @@ void R_StudioDrawVBOMesh_DrawPass(
2143
2143
StudioProgramState |= STUDIO_ADDITIVE_RENDER_MODE_ENABLED;
2144
2144
}
2145
2145
2146
- if (!(StudioProgramState & (STUDIO_ALPHA_BLEND_ENABLED | STUDIO_ADDITIVE_BLEND_ENABLED)) && (*currententity)->curstate .rendermode != kRenderNormal )
2146
+ if (!(StudioProgramState & (STUDIO_ALPHA_BLEND_ENABLED | STUDIO_ADDITIVE_BLEND_ENABLED)) && (*currententity)->curstate .rendermode != kRenderNormal && (*currententity)-> curstate . renderamt < 255 )
2147
2147
{
2148
2148
StudioProgramState |= STUDIO_ALPHA_BLEND_ENABLED;
2149
2149
}
@@ -2311,7 +2311,8 @@ void R_StudioDrawVBOMesh_DrawPass(
2311
2311
{
2312
2312
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
2313
2313
glEnable (GL_BLEND);
2314
- glDepthMask (GL_FALSE);
2314
+ // idk why but Valve uses GL_TRUE anyway, it should be GL_FALSE in general
2315
+ glDepthMask (GL_TRUE);
2315
2316
2316
2317
R_SetGBufferBlend (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
2317
2318
}
@@ -2408,10 +2409,7 @@ void R_StudioDrawVBOMesh_DrawPass(
2408
2409
glDisable (GL_BLEND);
2409
2410
glEnable (GL_CULL_FACE);
2410
2411
2411
- // if (r_draw_opaque)
2412
- // {
2413
2412
GL_EndStencil ();
2414
- // }
2415
2413
}
2416
2414
2417
2415
void R_StudioDrawVBOMesh (
You can’t perform that action at this time.
0 commit comments