X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fvout_pl.c;h=30245b88d0fae6b1ca2d3b9a18de2e28de0a0087;hb=9a864a8f77d7de8e787eb8a1d594d89daa7daca1;hp=c166b572113026c29d806e18f46424167a48edac;hpb=cdee2d818c421aad6b343faa0d0acb0b069f1741;p=pcsx_rearmed.git diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index c166b572..30245b88 100644 --- a/plugins/gpulib/vout_pl.c +++ b/plugins/gpulib/vout_pl.c @@ -93,6 +93,8 @@ void vout_update(void) if (!gpu.state.enhancement_was_active) return; // buffer not ready yet vram = gpu.get_enhancement_bufer(&src_x, &src_y, &w, &h, &vram_h); + if (vram == NULL) + return; x *= 2; y *= 2; src_x2 *= 2; }