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:
PIMPL(void) :
#ifdef GEM_MULTICONTEXT
context(new GLEWContext),
# ifdef GemGlewXContext
xcontext(new GemGlewXContext),
# endif /* GemGlewXContext */
#else
context(NULL),
#endif
#ifdef GemGlewXContext
xcontext(new GemGlewXContext),
#endif /* GemGlewXContext */
contextid(makeID())
{
/* check the stack-sizes */
......@@ -60,12 +60,12 @@ public:
PIMPL(const PIMPL&p) :
#ifdef GEM_MULTICONTEXT
context(new GLEWContext(*p.context)),
# ifdef GemGlewXContext
xcontext(new GemGlewXContext(*p.xcontext)),
# endif /* GemGlewXContext */
#else
context(NULL),
#endif
#ifdef GemGlewXContext
xcontext(new GemGlewXContext(*p.xcontext)),
#endif /* GemGlewXContext */
contextid(makeID())
{
/* 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