From: notaz Date: Tue, 26 Sep 2023 22:09:51 +0000 (+0300) Subject: plugin_lib: fix a silly crash X-Git-Tag: r24l~162 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccd1ad9280c13ec613b4e377a1c347f594d68761;p=pcsx_rearmed.git plugin_lib: fix a silly crash --- diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 8a6b6adb..917ae179 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -137,7 +137,7 @@ static __attribute__((noinline)) void draw_active_chans(int vout_w, int vout_h) unsigned short *d, p; int c, x, y; - if (dest == NULL || pl_vout_bpp != 16) + if (pl_vout_buf == NULL || pl_vout_bpp != 16) return; spu_get_debug_info(&live_chans, &run_chans, &fmod_chans, &noise_chans);