Fix race condition in C3Di_RenderQueueExit
This commit is contained in:
parent
1358ca3e7c
commit
4e2075f378
@ -186,8 +186,6 @@ static void C3Di_RenderQueueExit(void)
|
|||||||
int i;
|
int i;
|
||||||
C3D_RenderTarget *a, *next;
|
C3D_RenderTarget *a, *next;
|
||||||
|
|
||||||
if (inFrame) return;
|
|
||||||
|
|
||||||
for (a = firstTarget; a; a = next)
|
for (a = firstTarget; a; a = next)
|
||||||
{
|
{
|
||||||
next = a->next;
|
next = a->next;
|
||||||
@ -310,6 +308,8 @@ C3D_RenderTarget* C3D_RenderTargetCreate(int width, int height, int colorFmt, in
|
|||||||
|
|
||||||
void C3D_RenderTargetDelete(C3D_RenderTarget* target)
|
void C3D_RenderTargetDelete(C3D_RenderTarget* target)
|
||||||
{
|
{
|
||||||
|
target->clearBits = 0;
|
||||||
|
target->linked = false;
|
||||||
while (!target->drawOk)
|
while (!target->drawOk)
|
||||||
gspWaitForAnyEvent();
|
gspWaitForAnyEvent();
|
||||||
C3D_RenderBufDelete(&target->renderBuf);
|
C3D_RenderBufDelete(&target->renderBuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user