1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Call CRC_BuildTable() in TextureCache ctor.

This commit is contained in:
Sergey Lipskiy 2014-10-01 16:51:44 +07:00
parent c96b62adaf
commit 2ca283cf0f
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,6 @@
#include "gDP.h" #include "gDP.h"
#include "gSP.h" #include "gSP.h"
#include "N64.h" #include "N64.h"
#include "CRC.h"
#include "convert.h" #include "convert.h"
#include "FrameBuffer.h" #include "FrameBuffer.h"
#include "Config.h" #include "Config.h"
@ -254,8 +253,7 @@ void TextureCache::init()
m_cachedBytes = m_pDummy->textureBytes; m_cachedBytes = m_pDummy->textureBytes;
activateDummy( 0 ); activateDummy( 0 );
activateDummy( 1 ); activateDummy( 1 );
current[0] = current[1] = NULL;
CRC_BuildTable();
} }
void TextureCache::destroy() void TextureCache::destroy()

View File

@ -9,6 +9,7 @@
#include <map> #include <map>
#include "CRC.h"
#include "convert.h" #include "convert.h"
struct CachedTexture struct CachedTexture
@ -60,10 +61,11 @@ struct TextureCache
} }
private: private:
TextureCache() : m_maxBytes(0), m_cachedBytes(0), m_hits(0), m_misses(0), m_bitDepth(0) TextureCache() : m_pDummy(NULL), m_maxBytes(0), m_cachedBytes(0), m_hits(0), m_misses(0), m_bitDepth(0)
{ {
current[0] = NULL; current[0] = NULL;
current[1] = NULL; current[1] = NULL;
CRC_BuildTable();
} }
TextureCache(const TextureCache &); TextureCache(const TextureCache &);