SDL fixes

This commit is contained in:
Lynix
2020-05-27 20:37:20 +02:00
parent 81f03f04e5
commit 1734b8e5db
3 changed files with 10 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ namespace Nz
bool WindowImpl::Create(void* handle)
{
m_handle = SDL_CreateWindowFrom(handle);
if (!m_handle || !SDL_GetWindowID(m_handle))
if (!m_handle)
{
NazaraError("Invalid handle");
return false;