[iortcw] 409/497: Rend2: Fix textures being white in Garand scope view

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:37 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 ffe2f588bbb6b5926e057402ca7e0910745da856
Author: Zack Middleton <zturtleman at gmail.com>
Date:   Fri Oct 16 06:59:19 2015 -0500

    Rend2: Fix textures being white in Garand scope view
    
    Make lightmaps white not texture diffuse.
---
 MP/code/rend2/tr_shade.c | 4 ++--
 SP/code/rend2/tr_shade.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/rend2/tr_shade.c b/MP/code/rend2/tr_shade.c
index c9bc81c..6aeb285 100644
--- a/MP/code/rend2/tr_shade.c
+++ b/MP/code/rend2/tr_shade.c
@@ -117,7 +117,7 @@ static void R_BindAnimatedImageToTMU( textureBundle_t *bundle, int tmu ) {
 
 	if ( bundle->numImageAnimations <= 1 ) {
 		if ( bundle->isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
-			GL_BindToTMU( tr.whiteImage, 0 );
+			GL_BindToTMU( tr.whiteImage, tmu );
 		} else {
 			GL_BindToTMU( bundle->image[0], tmu);
 		}
@@ -135,7 +135,7 @@ static void R_BindAnimatedImageToTMU( textureBundle_t *bundle, int tmu ) {
 	index %= bundle->numImageAnimations;
 
 	if ( bundle->isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
-		GL_BindToTMU( tr.whiteImage, 0 );
+		GL_BindToTMU( tr.whiteImage, tmu );
 	} else {
 		GL_BindToTMU( bundle->image[ index ], tmu );
 	}
diff --git a/SP/code/rend2/tr_shade.c b/SP/code/rend2/tr_shade.c
index ed8a489..21b8c07 100644
--- a/SP/code/rend2/tr_shade.c
+++ b/SP/code/rend2/tr_shade.c
@@ -110,7 +110,7 @@ static void R_BindAnimatedImageToTMU( textureBundle_t *bundle, int tmu ) {
 
 	if ( bundle->numImageAnimations <= 1 ) {
 		if ( bundle->isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
-			GL_BindToTMU( tr.whiteImage, 0 );
+			GL_BindToTMU( tr.whiteImage, tmu );
 		} else {
 			GL_BindToTMU( bundle->image[0], tmu);
 		}
@@ -128,7 +128,7 @@ static void R_BindAnimatedImageToTMU( textureBundle_t *bundle, int tmu ) {
 	index %= bundle->numImageAnimations;
 
 	if ( bundle->isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
-		GL_BindToTMU( tr.whiteImage, 0 );
+		GL_BindToTMU( tr.whiteImage, tmu );
 	} else {
 		GL_BindToTMU( bundle->image[ index ], tmu );
 	}

-- 
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