aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu-gles/gpuTexture.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gpu-gles/gpuTexture.c')
-rw-r--r--plugins/gpu-gles/gpuTexture.c2
1 files changed, 2 insertions, 0 deletions
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;
}
//----------------------------------------------------//
}