Better fix for may be used uninitialized, maybe fixes GCC 4.x
This commit is contained in:
parent
3946309ece
commit
1e655fb2c1
|
@ -215,9 +215,13 @@ void HWR_RenderBatches(void)
|
||||||
int polygonReadPos = 0;// position in polygonIndexArray
|
int polygonReadPos = 0;// position in polygonIndexArray
|
||||||
|
|
||||||
int currentShader;
|
int currentShader;
|
||||||
|
int nextShader;
|
||||||
GLMipmap_t *currentTexture;
|
GLMipmap_t *currentTexture;
|
||||||
|
GLMipmap_t *nextTexture;
|
||||||
FBITFIELD currentPolyFlags;
|
FBITFIELD currentPolyFlags;
|
||||||
|
FBITFIELD nextPolyFlags;
|
||||||
FSurfaceInfo currentSurfaceInfo;
|
FSurfaceInfo currentSurfaceInfo;
|
||||||
|
FSurfaceInfo nextSurfaceInfo;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -283,13 +287,9 @@ void HWR_RenderBatches(void)
|
||||||
boolean stopFlag = false;
|
boolean stopFlag = false;
|
||||||
boolean changeState = false;
|
boolean changeState = false;
|
||||||
boolean changeShader = false;
|
boolean changeShader = false;
|
||||||
int nextShader = 0;
|
|
||||||
boolean changeTexture = false;
|
boolean changeTexture = false;
|
||||||
GLMipmap_t *nextTexture = NULL;
|
|
||||||
boolean changePolyFlags = false;
|
boolean changePolyFlags = false;
|
||||||
FBITFIELD nextPolyFlags = 0;
|
|
||||||
boolean changeSurfaceInfo = false;
|
boolean changeSurfaceInfo = false;
|
||||||
FSurfaceInfo nextSurfaceInfo = {0};
|
|
||||||
|
|
||||||
// steps:
|
// steps:
|
||||||
// write vertices
|
// write vertices
|
||||||
|
|
Loading…
Reference in a new issue