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:
parent
c96b62adaf
commit
2ca283cf0f
|
@ -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()
|
||||||
|
|
|
@ -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 &);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user