mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Changes to hi-res textures. Textures now load correctly when loading/saving a savestate, and can be toggled on and off in game.
Changed non-hi-res textures to use MurmurHash3, which has better performance that the previous hash. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7080 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include "VideoCommon.h"
|
||||
#include "TextureDecoder.h"
|
||||
#include "BPMemory.h"
|
||||
#include "Thread.h"
|
||||
|
||||
#include "CommonTypes.h"
|
||||
|
||||
@ -71,6 +72,8 @@ public:
|
||||
|
||||
virtual ~TextureCache(); // needs virtual for DX11 dtor
|
||||
|
||||
static void Init();
|
||||
static void Shutdown();
|
||||
static void Cleanup();
|
||||
|
||||
static void Invalidate(bool shutdown);
|
||||
@ -88,6 +91,8 @@ public:
|
||||
static void CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool bIsIntensityFmt,
|
||||
u32 copyfmt, bool bScaleByHalf, const EFBRectangle &source_rect);
|
||||
|
||||
static Common::CriticalSection texMutex;
|
||||
|
||||
protected:
|
||||
TextureCache();
|
||||
|
||||
|
Reference in New Issue
Block a user