X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpulib%2Fvout_pl.c;h=eadf57ce6904a91d74d9bde9ff06fc53a812bb55;hp=26827d0e9de6bedd20a909b3b1b2b3d7a2ee6246;hb=0b4038f8edd327a3a9a2fbdefbc25ece921bc2ab;hpb=4a1d78d40df22668e4c17e08fb0034f2781b8576 diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index 26827d0e..eadf57ce 100644 --- a/plugins/gpulib/vout_pl.c +++ b/plugins/gpulib/vout_pl.c @@ -75,8 +75,11 @@ void vout_update(void) check_mode_change(0); if (gpu.state.enhancement_active) { + if (!gpu.state.enhancement_was_active) + return; // buffer not ready yet vram = gpu.get_enhancement_bufer(&src_x, &src_y, &w, &h, &vram_h); x *= 2; y *= 2; + src_x2 *= 2; } if (src_y + h > vram_h) {