1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-25 05:49:34 +00:00

Fix issues reported by Valgrind

This commit is contained in:
Francisco Zurita 2017-10-09 22:47:27 -04:00
parent e5cc69556d
commit 762def7dae
7 changed files with 10 additions and 5 deletions

View File

@ -250,4 +250,4 @@ endlocal
<UserProperties UicDir=".\GeneratedFiles" RccDir=".\GeneratedFiles" Qt5Version_x0020_Win32="qt-5_7_1-x86-msvc2015-static" />
</VisualStudio>
</ProjectExtensions>
</Project>
</Project>

View File

@ -65,6 +65,7 @@ void ColorBufferToRDRAM::_initFBTexture(void)
m_pTexture = textureCache().addFrameBufferTexture(false);
m_pTexture->format = G_IM_FMT_RGBA;
m_pTexture->size = 2;
m_pTexture->clampS = 1;
m_pTexture->clampT = 1;
m_pTexture->frameBufferTexture = CachedTexture::fbOneSample;

View File

@ -50,6 +50,7 @@ void DepthBufferToRDRAM::init()
m_pColorTexture = textureCache().addFrameBufferTexture(false);
m_pColorTexture->format = G_IM_FMT_I;
m_pColorTexture->size = 2;
m_pColorTexture->clampS = 1;
m_pColorTexture->clampT = 1;
m_pColorTexture->frameBufferTexture = CachedTexture::fbOneSample;
@ -64,6 +65,7 @@ void DepthBufferToRDRAM::init()
m_pDepthTexture = textureCache().addFrameBufferTexture(false);
m_pDepthTexture->format = G_IM_FMT_I;
m_pColorTexture->size = 2;
m_pDepthTexture->clampS = 1;
m_pDepthTexture->clampT = 1;
m_pDepthTexture->frameBufferTexture = CachedTexture::fbOneSample;

View File

@ -32,6 +32,7 @@ void RDRAMtoColorBuffer::init()
m_pTexture = textureCache().addFrameBufferTexture(false);
m_pTexture->format = G_IM_FMT_RGBA;
m_pTexture->size = 2;
m_pTexture->clampS = 1;
m_pTexture->clampT = 1;
m_pTexture->frameBufferTexture = CachedTexture::fbOneSample;

View File

@ -94,9 +94,9 @@
struct CombinerOp
{
int op;
int param1;
int param2;
int param3;
int param1 = -1;
int param2 = -1;
int param3 = -1;
};
struct CombinerStage

View File

@ -201,6 +201,7 @@ namespace opengl {
class CachedTextureUnpackAlignment : public Cached1<s32>
{
public:
CachedTextureUnpackAlignment() { m_cached = -1; }
void setTextureUnpackAlignment(s32 _param);
};

View File

@ -17,7 +17,7 @@ struct CachedTexture
CachedTexture(graphics::ObjectHandle _name) : name(_name), max_level(0), frameBufferTexture(fbNone), bHDTexture(false) {}
graphics::ObjectHandle name;
u32 crc;
u32 crc = 0;
// float fulS, fulT;
// WORD ulS, ulT, lrS, lrT;
float offsetS, offsetT;