only enable fog for 3d

This commit is contained in:
veclavtalica 2025-01-14 23:28:48 +03:00
parent 5059802d09
commit ea0af5159f

View File

@ -458,7 +458,7 @@ void finally_draw_command(DeferredCommandDraw command) {
glDepthRange(command.depth_range_low, command.depth_range_high);
/* TODO: cache it for constant parameters, which is a common case */
if (fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
if (command.pipeline == PIPELINE_SPACE && fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
glEnable(GL_FOG);
/* clamp to valid range */