More Linux fixes

This commit is contained in:
Lynix
2020-05-27 21:01:14 +02:00
parent 7ed0543ad2
commit 4f9380da11
4 changed files with 6 additions and 5 deletions

View File

@@ -141,7 +141,7 @@ namespace Nz
}
// If context is shared by multiple windows
if (parameters.window)
if (parameters.window.type != WindowManager::Invalid)
{
NazaraAssert(parameters.window.type == WindowManager::X11, "Cannot create a context for a non-x11 window");

View File

@@ -25,7 +25,7 @@ namespace Nz
bool ContextImpl::Create(ContextParameters& parameters)
{
if (parameters.window.type != WindowManager::None)
if (parameters.window.type != WindowManager::Invalid)
{
NazaraAssert(parameters.window.type == WindowManager::Windows, "Cannot create a context for a non-win32 window");