Skip to content

Commit d77ee32

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

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
@@ -2829,6 +2829,9 @@ void R_CreateBuiltinImages()
28292829
imageParams.bits = IF_NOPICMIP | IF_NOALPHA;
28302830
imageParams.wrapType = wrapTypeEnum_t::WT_CLAMP;
28312831

2832+
// Don't reuse previously set data, we test the values for selecting the upload format.
2833+
memset( data, 255, sizeof( data ) );
2834+
28322835
for ( image_t * &image : tr.cinematicImage )
28332836
{
28342837
image = R_CreateImage( "_cinematic", ( const byte ** ) &dataPtr, 1, 1, 1, imageParams );

0 commit comments

Comments
 (0)