diff --git a/plugins/GSdx/GSLocalMemory.cpp b/plugins/GSdx/GSLocalMemory.cpp index fcc712150a..a0fe87fe6d 100644 --- a/plugins/GSdx/GSLocalMemory.cpp +++ b/plugins/GSdx/GSLocalMemory.cpp @@ -84,6 +84,8 @@ GSLocalMemory::GSLocalMemory() : m_clut(this) { m_vm8 = (uint8*)vmalloc(m_vmsize * 2, false); + m_vm16 = (uint16*)m_vm8; + m_vm32 = (uint32*)m_vm8; memset(m_vm8, 0, m_vmsize); diff --git a/plugins/GSdx/GSLocalMemory.h b/plugins/GSdx/GSLocalMemory.h index 838618d8e5..c6cf33dd9d 100644 --- a/plugins/GSdx/GSLocalMemory.h +++ b/plugins/GSdx/GSLocalMemory.h @@ -94,7 +94,9 @@ public: static const int m_vmsize = 1024 * 1024 * 4; - union {uint8* m_vm8; uint16* m_vm16; uint32* m_vm32;}; + uint8* m_vm8; + uint16* m_vm16; + uint32* m_vm32; GSClut m_clut;