correct use of DrawDone
This commit is contained in:
parent
a9519239d4
commit
4f9aadb9bb
|
@ -214,11 +214,8 @@ int flip_thread(void * arg)
|
|||
GX_LoadTexObj(&texobj, GX_TEXMAP0);
|
||||
|
||||
draw_square(view); // render textured quad
|
||||
GX_DrawDone ();
|
||||
GX_SetColorUpdate(GX_TRUE);
|
||||
|
||||
SDL_mutexV(videomutex);
|
||||
|
||||
if (quit_flip_thread == 1)
|
||||
{
|
||||
quit_flip_thread = 2;
|
||||
|
@ -228,6 +225,8 @@ int flip_thread(void * arg)
|
|||
whichfb ^= 1;
|
||||
|
||||
GX_CopyDisp(xfb[whichfb], GX_TRUE);
|
||||
GX_DrawDone();
|
||||
SDL_mutexV(videomutex);
|
||||
|
||||
VIDEO_SetNextFramebuffer(xfb[whichfb]);
|
||||
VIDEO_Flush();
|
||||
|
|
Reference in a new issue