mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Call CRC_BuildTable() in TextureCache ctor.
This commit is contained in:
parent
c96b62adaf
commit
2ca283cf0f
|
@ -7,7 +7,6 @@
|
|||
#include "gDP.h"
|
||||
#include "gSP.h"
|
||||
#include "N64.h"
|
||||
#include "CRC.h"
|
||||
#include "convert.h"
|
||||
#include "FrameBuffer.h"
|
||||
#include "Config.h"
|
||||
|
@ -254,8 +253,7 @@ void TextureCache::init()
|
|||
m_cachedBytes = m_pDummy->textureBytes;
|
||||
activateDummy( 0 );
|
||||
activateDummy( 1 );
|
||||
|
||||
CRC_BuildTable();
|
||||
current[0] = current[1] = NULL;
|
||||
}
|
||||
|
||||
void TextureCache::destroy()
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <map>
|
||||
|
||||
#include "CRC.h"
|
||||
#include "convert.h"
|
||||
|
||||
struct CachedTexture
|
||||
|
@ -60,10 +61,11 @@ struct TextureCache
|
|||
}
|
||||
|
||||
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[1] = NULL;
|
||||
CRC_BuildTable();
|
||||
}
|
||||
TextureCache(const TextureCache &);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user