From: notaz Date: Tue, 26 Sep 2023 22:09:51 +0000 (+0300) Subject: plugin_lib: fix a silly crash X-Git-Tag: r24~140 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=ba8d6a2dbb802b215c1657c5b456cb8c65a18520 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);