diff options
author | notaz | 2012-01-17 02:37:13 +0200 |
---|---|---|
committer | notaz | 2012-01-19 23:23:37 +0200 |
commit | 2ea6b4704682d1f731510d7c27f3b3c50f76a4d4 (patch) | |
tree | f5a67f4f39ab5564e404d308ab98ffb3dce77886 /plugins/gpu-gles | |
parent | d2ec504b047cc7d7a036c339d46e41e8567422a8 (diff) | |
download | pcsx_rearmed-2ea6b4704682d1f731510d7c27f3b3c50f76a4d4.tar.gz pcsx_rearmed-2ea6b4704682d1f731510d7c27f3b3c50f76a4d4.tar.bz2 pcsx_rearmed-2ea6b4704682d1f731510d7c27f3b3c50f76a4d4.zip |
gpu-gles: keep ClientState and texcache ptrs consistent
Diffstat (limited to 'plugins/gpu-gles')
-rw-r--r-- | plugins/gpu-gles/gpuExternals.h | 4 | ||||
-rw-r--r-- | plugins/gpu-gles/gpuPlugin.c | 2 | ||||
-rw-r--r-- | plugins/gpu-gles/gpuTexture.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gpu-gles/gpuExternals.h b/plugins/gpu-gles/gpuExternals.h index f88b37b..897b446 100644 --- a/plugins/gpu-gles/gpuExternals.h +++ b/plugins/gpu-gles/gpuExternals.h @@ -364,6 +364,10 @@ extern short sxmax; extern short symin;
extern short symax;
+extern unsigned int CSVERTEX;
+extern unsigned int CSCOLOR;
+extern unsigned int CSTEXTURE;
+
#endif
//-----------------------------------------------------//
diff --git a/plugins/gpu-gles/gpuPlugin.c b/plugins/gpu-gles/gpuPlugin.c index 45a0b92..9d749a5 100644 --- a/plugins/gpu-gles/gpuPlugin.c +++ b/plugins/gpu-gles/gpuPlugin.c @@ -506,6 +506,8 @@ long CALLBACK GPUopen(int hwndGPU) InitializeTextureStore(); // init texture mem
+ CSTEXTURE = CSVERTEX = CSCOLOR = 0;
+
// lGPUstatusRet = 0x74000000;
// with some emus, we could do the OGL init right here... oh my
diff --git a/plugins/gpu-gles/gpuTexture.c b/plugins/gpu-gles/gpuTexture.c index 264458e..2f96482 100644 --- a/plugins/gpu-gles/gpuTexture.c +++ b/plugins/gpu-gles/gpuTexture.c @@ -612,6 +612,7 @@ void CleanupTextureStore() for(j=0;j<MAXTPAGES;j++) // loop tex pages
{
free(pscSubtexStore[i][j]); // -> clean mem
+ pscSubtexStore[i][j]=0;
}
for(i=0;i<MAXSORTTEX;i++)
{
@@ -622,6 +623,7 @@ void CleanupTextureStore() uiStexturePage[i]=0; // --> delete it
}
free(pxSsubtexLeft[i]); // -> clean mem
+ pxSsubtexLeft[i]=0;
}
//----------------------------------------------------//
}
|