Browse Source

Avoid creating tag types more than once.

pull/122/merge
Vladimír Vondruš 11 years ago
parent
commit
a58cbd8153
  1. 2
      src/Magnum/Context.cpp

2
src/Magnum/Context.cpp

@ -409,7 +409,7 @@ Context::Context(NoCreateT, void functionLoader()) {
/* Nothing else, waiting for create() to be called */ /* Nothing else, waiting for create() to be called */
} }
Context::Context(void functionLoader()): Context{NoCreateT{}, functionLoader} { Context::Context(void functionLoader()): Context{NoCreate, functionLoader} {
/* Hard exit if the context cannot be created */ /* Hard exit if the context cannot be created */
if(!create()) std::exit(1); if(!create()) std::exit(1);
} }

Loading…
Cancel
Save