mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Better fix for may be used uninitialized, maybe fixes GCC 4.x
This commit is contained in:
parent
3946309ece
commit
1e655fb2c1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue