516e287f24
On Android when the application goes into the background, the EGL window surface becomes invalid. It is possible to resume rendering when coming to the foreground by resetting and reinitializing bgfx from scratch, but this is costly in terms of performance. This patch provides an alternative by letting the application provide a new native window, causing bgfx to recreate just the EGL window surface while keeping the EGL context intact. This allows the application to resume rendering without needing to reload textures, shaders, etc. To test, build and run the Hello World example on Android, switch to another app and then back again. The screen should not remain blank after switching back. |
||
---|---|---|
.. | ||
debugdraw | ||
entry | ||
font | ||
imgui | ||
nanovg | ||
aviwriter.h | ||
bgfx_utils.cpp | ||
bgfx_utils.h | ||
bounds.cpp | ||
bounds.h | ||
camera.cpp | ||
camera.h | ||
common.h | ||
common.sh | ||
cube_atlas.cpp | ||
cube_atlas.h | ||
packrect.h | ||
shaderlib.sh |