Commit b52288f1 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

cleanup: initialize GemGlewXContext whenever GemGlewXContext is defined

not only if GEM_MULTICONTEXT is defined...
parent a5d1582b
...@@ -38,12 +38,12 @@ public: ...@@ -38,12 +38,12 @@ public:
PIMPL(void) : PIMPL(void) :
#ifdef GEM_MULTICONTEXT #ifdef GEM_MULTICONTEXT
context(new GLEWContext), context(new GLEWContext),
# ifdef GemGlewXContext
xcontext(new GemGlewXContext),
# endif /* GemGlewXContext */
#else #else
context(NULL), context(NULL),
#endif #endif
#ifdef GemGlewXContext
xcontext(new GemGlewXContext),
#endif /* GemGlewXContext */
contextid(makeID()) contextid(makeID())
{ {
/* check the stack-sizes */ /* check the stack-sizes */
...@@ -60,12 +60,12 @@ public: ...@@ -60,12 +60,12 @@ public:
PIMPL(const PIMPL&p) : PIMPL(const PIMPL&p) :
#ifdef GEM_MULTICONTEXT #ifdef GEM_MULTICONTEXT
context(new GLEWContext(*p.context)), context(new GLEWContext(*p.context)),
# ifdef GemGlewXContext
xcontext(new GemGlewXContext(*p.xcontext)),
# endif /* GemGlewXContext */
#else #else
context(NULL), context(NULL),
#endif #endif
#ifdef GemGlewXContext
xcontext(new GemGlewXContext(*p.xcontext)),
#endif /* GemGlewXContext */
contextid(makeID()) contextid(makeID())
{ {
/* check the stack-sizes */ /* check the stack-sizes */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment