Browse Source

GlutWindowContext: don't save unused argc and argv variables.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
b5edb73f38
  1. 2
      src/Contexts/GlutWindowContext.cpp
  2. 3
      src/Contexts/GlutWindowContext.h

2
src/Contexts/GlutWindowContext.cpp

@ -22,7 +22,7 @@ namespace Magnum { namespace Contexts {
GlutWindowContext* GlutWindowContext::instance = nullptr; GlutWindowContext* GlutWindowContext::instance = nullptr;
GlutWindowContext::GlutWindowContext(int& argc, char** argv, const std::string& title, const Math::Vector2<GLsizei>& size): argc(argc), argv(argv) { GlutWindowContext::GlutWindowContext(int& argc, char** argv, const std::string& title, const Math::Vector2<GLsizei>& size) {
/* Save global instance */ /* Save global instance */
instance = this; instance = this;

3
src/Contexts/GlutWindowContext.h

@ -250,9 +250,6 @@ class GlutWindowContext: public AbstractWindowContext {
static GlutWindowContext* instance; static GlutWindowContext* instance;
int& argc;
char** argv;
Context* c; Context* c;
}; };

Loading…
Cancel
Save