More Linux fixes
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Nz
|
||||
{
|
||||
enum class WindowManager
|
||||
{
|
||||
None,
|
||||
Invalid,
|
||||
|
||||
X11,
|
||||
Wayland,
|
||||
@@ -23,7 +23,7 @@ namespace Nz
|
||||
|
||||
struct WindowHandle
|
||||
{
|
||||
WindowManager type = WindowManager::None;
|
||||
WindowManager type = WindowManager::Invalid;
|
||||
|
||||
union
|
||||
{
|
||||
|
||||
@@ -27,8 +27,9 @@
|
||||
namespace GLX
|
||||
{
|
||||
#include <GL/glx.h> // Defined in a namespace to avoid conflict
|
||||
}
|
||||
#include <GL/glxext.h>
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
namespace Nz
|
||||
|
||||
@@ -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