fix FlushColumns being called without being initialized

aack
This commit is contained in:
Alug committed 2025-10-08 16:47:54 +02:00
1 parent 3c9292c137
commit 2753052ee7
1 file changed
+3 -3
+3 -3
View File
@@ -438,7 +438,7 @@ static UINT8 *R_GetBufferOpaque(drawcolumndata_t *dc)
static UINT8 *R_GetBufferTrans(drawcolumndata_t *dc)
{
if (temp_dc.x == 4 || dc->transmap != temp_dc.tranmap ||
if (temp_dc.x == 4 ||
(temp_dc.x && (temp_dc.type != FLUSH_TRANS || temp_dc.x + temp_dc.startx != dc->x)))
R_FlushColumns();
@@ -469,7 +469,7 @@ static UINT8 *R_GetBufferTrans(drawcolumndata_t *dc)
static UINT8 *R_GetBufferColormap(drawcolumndata_t *dc)
{
if (temp_dc.x == 4 || dc->translation != temp_dc.translation ||
if (temp_dc.x == 4 ||
(temp_dc.x && (temp_dc.type != FLUSH_COLORMAP || temp_dc.x + temp_dc.startx != dc->x)))
R_FlushColumns();
@@ -500,7 +500,7 @@ static UINT8 *R_GetBufferColormap(drawcolumndata_t *dc)
static UINT8 *R_GetBufferColormapTrans(drawcolumndata_t *dc)
{
if (temp_dc.x == 4 || dc->translation != temp_dc.translation || dc->transmap != temp_dc.tranmap ||
if (temp_dc.x == 4 ||
(temp_dc.x && (temp_dc.type != FLUSH_COLORMAP_TRANS || temp_dc.x + temp_dc.startx != dc->x)))
R_FlushColumns();