diff options
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;
}
//----------------------------------------------------//
}
|