X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fpsx_gpu%2Fpsx_gpu_parse.c;h=376225801db412638154f770b265a2f0c1f808b7;hb=d91ab53739f331e6ce979463afdbbe7b5fd638cd;hp=6a88beb7843c53b7f483a5b7722ffe46b14ad466;hpb=4b4164bb8f5019f743d2879b64d8f8f25430685d;p=pcsx_rearmed.git diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c index 6a88beb7..37622580 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c @@ -798,7 +798,7 @@ static void update_enhancement_buf_table_from_hres(psx_gpu_struct *psx_gpu) s = psx_gpu->enhancement_x_threshold; for (x = 0; x < sizeof(psx_gpu->enhancement_buf_by_x16); x++) { - if (b < 3 && x * ENH_BUF_TABLE_STEP >= s - ENH_BUF_TABLE_STEP - 1) + if (b < 3 && x * ENH_BUF_TABLE_STEP >= s) { s += psx_gpu->enhancement_x_threshold; b++;