From 902e295089a0678acfeea7a7f825f5fe5407dd57 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 30 Dec 2015 19:13:30 +0100 Subject: [PATCH] gsdx: fix onimusha crash in custom resolution I don't understand why but it seems it needs more than 8MB --- plugins/GSdx/GSTextureCache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index a172751539..50362d63da 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -38,9 +38,10 @@ GSTextureCache::GSTextureCache(GSRenderer* r) m_can_convert_depth = s_IS_OPENGL && theApp.GetConfig("texture_cache_depth", 1); m_crc_hack_level = theApp.GetConfig("crc_hack_level", 3); - // In theory 4MB is enough but 8MB is safer for overflow + // In theory 4MB is enough but 9MB is safer for overflow (8MB + // isn't enough in custom resolution) // Test: onimusha 3 PAL 60Hz - m_temp = (uint8*)_aligned_malloc(2 * 1024 * 1024 * sizeof(uint32), 32); + m_temp = (uint8*)_aligned_malloc(9 * 1024 * 1024, 32); } GSTextureCache::~GSTextureCache()