Commit b0e70e1
ogc: flush the FIFO after executing the command queue
It can happens that the client program immediately calls
SDL_DestroyTexture() after draawing it. Luckily for us, SDL is smart
enough to realize that the texture has been used in a draw operation and
issues a SDL_RenderFlush() so that all the operations get executed. But
this means that on our side, we must also make sure that when we return
from OGC_RunCommandQueue() the texture data is no longer needed. The
call to GX_DrawDone() does exactly this.1 parent 50697f7 commit b0e70e1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
| |||
0 commit comments