mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix wrong quad offset for (not caused by transparent) flushes
This commit is contained in:
parent
63403ea53d
commit
53cb36bbe7
|
@ -1410,8 +1410,12 @@ void CMapLayers::RenderQuadLayer(int LayerIndex, CMapItemLayerQuads *pQuadLayer,
|
|||
// render quads of the current offset directly(cancel batching)
|
||||
Graphics()->RenderQuadLayer(Visuals.m_BufferContainerIndex, &s_QuadRenderInfo[0], QuadsRenderCount, CurQuadOffset);
|
||||
QuadsRenderCount = 0;
|
||||
// since this quad is ignored, the offset is the next quad
|
||||
CurQuadOffset = i + 1;
|
||||
CurQuadOffset = i;
|
||||
if(aColor[3] == 0)
|
||||
{
|
||||
// since this quad is ignored, the offset is the next quad
|
||||
++CurQuadOffset;
|
||||
}
|
||||
}
|
||||
|
||||
if(aColor[3] > 0)
|
||||
|
|
Loading…
Reference in a new issue