X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=459f85a769cf82263a4229a219130bcc973461af;hp=6763d611a6d9ac384dc0228337f934afe45fcc39;hb=38d9385eff4ea0edef250a3ee7068614f22c9c88;hpb=8bf628c4f976b617d840a64a6e7c2edb5f1d7719 diff --git a/src/tools.c b/src/tools.c index 6763d611..459f85a7 100644 --- a/src/tools.c +++ b/src/tools.c @@ -9658,6 +9658,8 @@ void ChangeViewportPropertiesIfNeeded(void) { // printf("::: init_video_buffer\n"); + FreeAllImageTextures(); // needs old renderer to free the textures + InitVideoBuffer(WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH, setup.fullscreen); InitImageTextures(); }