Browse Source

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

vectorfields
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(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 */
instance = this;

3
src/Contexts/GlutWindowContext.h

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

Loading…
Cancel
Save