Better fix for may be used uninitialized, maybe fixes GCC 4.x

This commit is contained in:
Steel Titanium 2020-06-17 18:23:54 -04:00
parent 3946309ece
commit 1e655fb2c1
1 changed files with 4 additions and 4 deletions

View File

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