mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
GSdx:
Committing a hack KrossX prepared (thanks) ;) It can be used to fix bad character sprites in Gust games. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5101 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
78c1667a9c
commit
7e435329ca
10 files changed
+82
-40
No files matched your search
@@ -25,6 +25,7 @@
|
||||
GSTextureCache::GSTextureCache(GSRenderer* r)
|
||||
: m_renderer(r)
|
||||
{
|
||||
m_spritehack = !!theApp.GetConfig("UserHacks_SpriteHack", 0);
|
||||
m_paltex = !!theApp.GetConfig("paltex", 0);
|
||||
|
||||
m_temp = (uint8*)_aligned_malloc(1024 * 1024 * sizeof(uint32), 32);
|
||||
@@ -584,6 +585,11 @@ GSTextureCache::Source* GSTextureCache::CreateSource(const GIFRegTEX0& TEX0, con
|
||||
|
||||
if(dst == NULL)
|
||||
{
|
||||
if(m_spritehack && TEX0.CPSM == 2 && (TEX0.PSM == 19 || TEX0.PSM == 27))
|
||||
src->m_spritehack_t = true;
|
||||
else
|
||||
src->m_spritehack_t = false;
|
||||
|
||||
if(m_paltex && GSLocalMemory::m_psm[TEX0.PSM].pal > 0)
|
||||
{
|
||||
src->m_fmt = FMT_8;
|
||||
|
||||
Reference in new issue
Block a user