More Linux fixes
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user