Fixed missing error messages for SDL_GetWindowWMInfo().

This commit is contained in:
Philipp Wiesemann 2017-06-11 22:30:39 +02:00
parent 646f24dcaa
commit 852d858c79
2 changed files with 2 additions and 0 deletions

View file

@ -145,6 +145,7 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
maybe by forcing SDL_VIDEODRIVER=x11. */
if (version < 2000006) {
info->subsystem = SDL_SYSWM_UNKNOWN;
SDL_SetError("Version must be 2.0.6 or newer");
return SDL_FALSE;
}