From 2753052ee73e459b02c489a797ac49f1e49be5ee Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 6 Oct 2025 19:45:31 +0200 Subject: [PATCH] fix FlushColumns being called without being initialized aack --- src/r_draw_flush.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_draw_flush.cpp b/src/r_draw_flush.cpp index b77ece5d5..b1bbb464f 100644 --- a/src/r_draw_flush.cpp +++ b/src/r_draw_flush.cpp @@ -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();