Skip to content
Snippets Groups Projects
Commit 8365d975 authored by SteelT's avatar SteelT
Browse files

A even more better fix for this

parent 1e655fb2
No related branches found
No related tags found
No related merge requests found
......@@ -215,11 +215,11 @@ void HWR_RenderBatches(void)
int polygonReadPos = 0;// position in polygonIndexArray
int currentShader;
int nextShader;
int nextShader = 0;
GLMipmap_t *currentTexture;
GLMipmap_t *nextTexture;
FBITFIELD currentPolyFlags;
FBITFIELD nextPolyFlags;
GLMipmap_t *nextTexture = NULL;
FBITFIELD currentPolyFlags = 0;
FBITFIELD nextPolyFlags = 0;
FSurfaceInfo currentSurfaceInfo;
FSurfaceInfo nextSurfaceInfo;
......@@ -228,6 +228,10 @@ void HWR_RenderBatches(void)
if (!currently_batching)
I_Error("HWR_RenderBatches called without starting batching");
nextSurfaceInfo.LightInfo.fade_end = 0;
nextSurfaceInfo.LightInfo.fade_start = 0;
nextSurfaceInfo.LightInfo.light_level = 0;
currently_batching = false;// no longer collecting batches
if (!polygonArraySize)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment