mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix maximum tile ID in caching for 256-color modes
This commit is contained in:
parent
53c7f6f50a
commit
71b616a9c2
1
CHANGES
1
CHANGES
|
@ -28,6 +28,7 @@ Other fixes:
|
||||||
- FFmpeg: Don't attempt to use YUV 4:2:0 for lossless videos (fixes mgba.io/i/2084)
|
- FFmpeg: Don't attempt to use YUV 4:2:0 for lossless videos (fixes mgba.io/i/2084)
|
||||||
- GB Video: Fix memory leak when reseting SGB games
|
- GB Video: Fix memory leak when reseting SGB games
|
||||||
- GBA: Fix out of bounds ROM accesses on patched ROMs smaller than 32 MiB
|
- GBA: Fix out of bounds ROM accesses on patched ROMs smaller than 32 MiB
|
||||||
|
- GBA: Fix maximum tile ID in caching for 256-color modes
|
||||||
- Libretro: Fix crash when using Game Boy codes (fixes mgba.io/i/2281)
|
- Libretro: Fix crash when using Game Boy codes (fixes mgba.io/i/2281)
|
||||||
- Qt: Fix corrupted savestate and fatal error text
|
- Qt: Fix corrupted savestate and fatal error text
|
||||||
Misc:
|
Misc:
|
||||||
|
|
|
@ -25,10 +25,10 @@ void GBAVideoCacheInit(struct mCacheSet* cache) {
|
||||||
|
|
||||||
sysconfig = mTileCacheSystemInfoSetPaletteBPP(sysconfig, 3); // 2^(2^3) = 256 entries
|
sysconfig = mTileCacheSystemInfoSetPaletteBPP(sysconfig, 3); // 2^(2^3) = 256 entries
|
||||||
sysconfig = mTileCacheSystemInfoSetPaletteCount(sysconfig, 0); // 1 palettes
|
sysconfig = mTileCacheSystemInfoSetPaletteCount(sysconfig, 0); // 1 palettes
|
||||||
sysconfig = mTileCacheSystemInfoSetMaxTiles(sysconfig, 2048);
|
sysconfig = mTileCacheSystemInfoSetMaxTiles(sysconfig, 1024);
|
||||||
mTileCacheConfigureSystem(mTileCacheSetGetPointer(&cache->tiles, 1), sysconfig, 0, 0);
|
mTileCacheConfigureSystem(mTileCacheSetGetPointer(&cache->tiles, 1), sysconfig, 0, 0);
|
||||||
mTileCacheConfigure(mTileCacheSetGetPointer(&cache->tiles, 1), config);
|
mTileCacheConfigure(mTileCacheSetGetPointer(&cache->tiles, 1), config);
|
||||||
sysconfig = mTileCacheSystemInfoSetMaxTiles(sysconfig, 1024);
|
sysconfig = mTileCacheSystemInfoSetMaxTiles(sysconfig, 512);
|
||||||
mTileCacheConfigureSystem(mTileCacheSetGetPointer(&cache->tiles, 3), sysconfig, 0x10000, 0x100);
|
mTileCacheConfigureSystem(mTileCacheSetGetPointer(&cache->tiles, 3), sysconfig, 0x10000, 0x100);
|
||||||
mTileCacheConfigure(mTileCacheSetGetPointer(&cache->tiles, 3), config);
|
mTileCacheConfigure(mTileCacheSetGetPointer(&cache->tiles, 3), config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue