memset screentex to 0 in FlushScreenTextures

This commit is contained in:
Alug committed 2024-11-27 17:10:56 +01:00
1 parent 82c18be717
commit 3a9082a694
1 file changed
+1 -3
+1 -3
View File
@@ -3109,10 +3109,8 @@ EXPORT void HWRAPI(PostImgRedraw) (float points[SCREENVERTS][SCREENVERTS][2])
// a new size
EXPORT void HWRAPI(FlushScreenTextures) (void)
{
int i;
pglDeleteTextures(NUMSCREENTEXTURES, screenTextures);
for (i = 0; i < NUMSCREENTEXTURES; i++)
screenTextures[i] = 0;
memset(screenTextures, 0 , sizeof(screenTextures));
}
EXPORT void HWRAPI(DrawScreenTexture)(int tex, FSurfaceInfo *surf, FBITFIELD polyflags)