Skip to content

Commit 9d97dbf

Browse files
committed
tr_image: do not rely on previously set data for _cinematic, make sure it cannot be detected as RED
1 parent 9603974 commit 9d97dbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/renderer/tr_image.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,6 +2833,9 @@ void R_CreateBuiltinImages()
28332833
imageParams.bits = IF_NOPICMIP;
28342834
imageParams.wrapType = wrapTypeEnum_t::WT_CLAMP;
28352835

2836+
// Don't reuse previously set data, we test the values for selecting the upload format.
2837+
memset( data, 255, sizeof( data ) );
2838+
28362839
for ( image_t * &image : tr.cinematicImage )
28372840
{
28382841
image = R_CreateImage( "_cinematic", ( const byte ** ) &dataPtr, 1, 1, 1, imageParams );

0 commit comments

Comments
 (0)