Skip to content

Commit d4cea84

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

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
@@ -2834,6 +2834,9 @@ void R_CreateBuiltinImages()
28342834
imageParams.bits = IF_NOPICMIP;
28352835
imageParams.wrapType = wrapTypeEnum_t::WT_CLAMP;
28362836

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

0 commit comments

Comments
 (0)