mcst-linux-kernel/patches-2024.06.26/gl4es-1.1.4/0104-Add-missing-initializa...

27 lines
921 B
Diff

From c57194977460e2446d1d45b08fdf8fc243c6ce9f Mon Sep 17 00:00:00 2001
From: Martin Mullins <martin.mullins942@gmail.com>
Date: Thu, 10 Dec 2020 00:12:54 +0000
Subject: [PATCH 104/233] Add missing initialization of texenvalphascale
Found when running the Serious Engine against gl4es.
---
src/gl/fpe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gl/fpe.c b/src/gl/fpe.c
index a8e90ce1..18633bf7 100644
--- a/src/gl/fpe.c
+++ b/src/gl/fpe.c
@@ -1616,7 +1616,7 @@ void builtin_Init(program_t *glprogram) {
for (int i=0; i<MAX_TEX; i++) {
glprogram->builtin_texenvcolor[i] = -1;
glprogram->builtin_texenvrgbscale[i] = -1;
- glprogram->builtin_texenvrgbscale[i] = -1;
+ glprogram->builtin_texenvalphascale[i] = -1;
for (int j=0; j<4; j++) {
glprogram->builtin_eye[j][i] = -1;
glprogram->builtin_obj[j][i] = -1;
--
2.11.0