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++;