Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
b52288f1
Commit
b52288f1
authored
Mar 28, 2019
by
IOhannes m zmölnig
Browse files
cleanup: initialize GemGlewXContext whenever GemGlewXContext is defined
not only if GEM_MULTICONTEXT is defined...
parent
a5d1582b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Base/GemContext.cpp
View file @
b52288f1
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment