Skip to content

Commit 0e2fa2d

Browse files
committed
tr_image: do not rely on previously set data for _cinematic
1 parent 1a54300 commit 0e2fa2d

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
@@ -2787,6 +2787,9 @@ void R_CreateBuiltinImages()
27872787
imageParams.bits = IF_NOPICMIP;
27882788
imageParams.wrapType = wrapTypeEnum_t::WT_CLAMP;
27892789

2790+
// Don't reuse previously set data, we test the values for selecting the upload format.
2791+
memset( data, 255, sizeof( data ) );
2792+
27902793
for ( image_t * &image : tr.cinematicImage )
27912794
{
27922795
image = R_CreateImage( "_cinematic", ( const byte ** ) &dataPtr, 1, 1, 1, imageParams );

0 commit comments

Comments
 (0)