mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed 08-update example.
This commit is contained in:
@@ -465,6 +465,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||
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.
|
||||
free(texture2dData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user