switch((psx_gpu->render_state_base >> 8) & 0x3)
{
- default:
case TEXTURE_MODE_4BPP:
texture_base = psx_gpu->texture_4bpp_cache[psx_gpu->current_texture_page];
texture_ptr += (psx_gpu->texture_window_y >> 4) << 12;
break;
+ default:
case TEXTURE_MODE_16BPP:
texture_base = (u8 *)(psx_gpu->vram_ptr);
texture_base += (psx_gpu->current_texture_page & 0xF) * 128;
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++;
#endif /* PCSX */
-// vim:shiftwidth=2:expandtab
+// vim:ts=2:shiftwidth=2:expandtab