Browse Source

More Xlib workarounds...

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
c2949d6b59
  1. 2
      src/Contexts/GlxContext.cpp
  2. 3
      src/Contexts/GlxContext.h

2
src/Contexts/GlxContext.cpp

@ -18,6 +18,8 @@
#include <GL/glxext.h>
#include <Utility/Debug.h>
#define None 0L // redef Xlib nonsense
namespace Magnum { namespace Contexts {
VisualID GlxContext::getVisualId(Display* nativeDisplay) {

3
src/Contexts/GlxContext.h

@ -21,6 +21,9 @@
#include "Magnum.h"
#include <GL/glx.h>
/* undef Xlib nonsense to avoid conflicts */
#undef None
#undef Always
#include "AbstractContext.h"

Loading…
Cancel
Save