mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve error handling
This commit is contained in:
parent
d0b465a4dd
commit
2c3e4cbce7
@ -567,6 +567,11 @@ static native_window_t* native_window_create_internal(const char* title, uint32_
|
||||
sdl->render = SDL_CreateRenderer(sdl->window, -1, SDL_RENDERER_SOFTWARE);
|
||||
}
|
||||
#endif /*WITH_NANOVG_SOFT*/
|
||||
|
||||
if (sdl->window == NULL) {
|
||||
log_debug("Window could not be created! SDL_Error: %s\n", SDL_GetError());
|
||||
assert(!"Window could not be created");
|
||||
}
|
||||
|
||||
win->handle = sdl->window;
|
||||
win->vt = &s_native_window_vtable;
|
||||
|
Loading…
Reference in New Issue
Block a user