From 1e655fb2c14920076ce5102af5c7b7382411d0f3 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Wed, 17 Jun 2020 18:23:54 -0400 Subject: [PATCH] Better fix for may be used uninitialized, maybe fixes GCC 4.x --- src/hardware/hw_batching.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/hw_batching.c b/src/hardware/hw_batching.c index 8a19ee0e6..a574c7879 100644 --- a/src/hardware/hw_batching.c +++ b/src/hardware/hw_batching.c @@ -215,9 +215,13 @@ void HWR_RenderBatches(void) int polygonReadPos = 0;// position in polygonIndexArray int currentShader; + int nextShader; GLMipmap_t *currentTexture; + GLMipmap_t *nextTexture; FBITFIELD currentPolyFlags; + FBITFIELD nextPolyFlags; FSurfaceInfo currentSurfaceInfo; + FSurfaceInfo nextSurfaceInfo; int i; @@ -283,13 +287,9 @@ void HWR_RenderBatches(void) boolean stopFlag = false; boolean changeState = false; boolean changeShader = false; - int nextShader = 0; boolean changeTexture = false; - GLMipmap_t *nextTexture = NULL; boolean changePolyFlags = false; - FBITFIELD nextPolyFlags = 0; boolean changeSurfaceInfo = false; - FSurfaceInfo nextSurfaceInfo = {0}; // steps: // write vertices