mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[opengl] fix free bug with new contiguous buffer
This commit is contained in:
parent
adca879fb9
commit
4fd59ce8c9
@ -854,6 +854,10 @@ static void deconfigure(struct Inst * this)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this->amdPinnedMemSupport)
|
if (this->amdPinnedMemSupport)
|
||||||
|
{
|
||||||
|
if (this->texPixels[0])
|
||||||
|
free(this->texPixels[0]);
|
||||||
|
|
||||||
for(int i = 0; i < BUFFER_COUNT; ++i)
|
for(int i = 0; i < BUFFER_COUNT; ++i)
|
||||||
{
|
{
|
||||||
if (this->fences[i])
|
if (this->fences[i])
|
||||||
@ -861,10 +865,6 @@ static void deconfigure(struct Inst * this)
|
|||||||
glDeleteSync(this->fences[i]);
|
glDeleteSync(this->fences[i]);
|
||||||
this->fences[i] = NULL;
|
this->fences[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->texPixels[i])
|
|
||||||
{
|
|
||||||
free(this->texPixels[i]);
|
|
||||||
this->texPixels[i] = NULL;
|
this->texPixels[i] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user