[iortcw] 438/497: All: Don't fog the 2D items in OpenGL1

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 84cdc1aab8c27d8edd92c695b0d33db2a0c620f8
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Mon Nov 23 19:32:23 2015 -0500

    All: Don't fog the 2D items in OpenGL1
---
 MP/code/renderer/tr_shade.c | 4 ++++
 SP/code/renderer/tr_shade.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/MP/code/renderer/tr_shade.c b/MP/code/renderer/tr_shade.c
index 7d3bcd9..edabc76 100644
--- a/MP/code/renderer/tr_shade.c
+++ b/MP/code/renderer/tr_shade.c
@@ -413,6 +413,8 @@ static void DrawMultitextured( shaderCommands_t *input, int stage ) {
 		R_FogOn();
 	} else if ( tess.shader->noFog && !pStage->isFogged ) {
 		R_FogOff(); // turn it back off
+	} else if ( backEnd.projection2D ) {
+		R_FogOff();
 	} else {    // make sure it's on
 		R_FogOn();
 	}
@@ -1391,6 +1393,8 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) {
 				R_FogOn();
 			} else if ( tess.shader->noFog && !pStage->isFogged ) {
 				R_FogOff(); // turn it back off
+			} else if ( backEnd.projection2D ) {
+				R_FogOff();
 			} else {    // make sure it's on
 				R_FogOn();
 			}
diff --git a/SP/code/renderer/tr_shade.c b/SP/code/renderer/tr_shade.c
index 65afdba..e884a26 100644
--- a/SP/code/renderer/tr_shade.c
+++ b/SP/code/renderer/tr_shade.c
@@ -417,6 +417,8 @@ static void DrawMultitextured( shaderCommands_t *input, int stage ) {
 		R_FogOn();
 	} else if ( tess.shader->noFog && !pStage->isFogged ) {
 		R_FogOff(); // turn it back off
+	} else if ( backEnd.projection2D ) {
+		R_FogOff();
 	} else {    // make sure it's on
 		R_FogOn();
 	}
@@ -1396,6 +1398,8 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) {
 				R_FogOn();
 			} else if ( tess.shader->noFog && !pStage->isFogged ) {
 				R_FogOff(); // turn it back off
+			} else if ( backEnd.projection2D ) {
+				R_FogOff();
 			} else {    // make sure it's on
 				R_FogOn();
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list