DannyArends / CalderaD

SDL2 Vulkan renderer for windows/linux/android in the D Programming Language (based on vulkan-tutorial.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL error after SDL_RENDER_DEVICE_RESET

DannyArends opened this issue · comments

On Android when minimizing the app, SDL sends out an SDL_RENDER_DEVICE_RESET when the returning to render after the app is closed and re-opened. The description of what should happen is: "the device has been reset and all textures need to be recreated", however there is a warning before W/libEGL: EGLNativeWindowType 0x7494ced450 disconnect failed.

The SDL error on resume is:

    SDL error?: 'OpenGL not initialized'

After this the Vulkan rendering engine ends up throwing:

    E/vulkan: dequeueBuffer failed: No such device (-19)

Reloading the swapchain (even with screen recreation / textures), doesn't help and ends up crashing CalderaD