mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed 08-update example.
This commit is contained in:
parent
95ff8b3f07
commit
0e81c0b2aa
1 changed files with 5 additions and 0 deletions
|
@ -465,6 +465,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
bgfx::frame();
|
bgfx::frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// texture2dData is managed from main thread, and it's passed to renderer
|
||||||
|
// just as MemoryRef. At this point render might be using it. We must wait
|
||||||
|
// previous frame to finish before we can free it.
|
||||||
|
bgfx::frame();
|
||||||
|
|
||||||
// Cleanup.
|
// Cleanup.
|
||||||
free(texture2dData);
|
free(texture2dData);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue