Browse Source

Platform: properly zero-initialize the exit code.

Accidentally overlooked in f4b6130ab0.
pull/342/head
Vladimír Vondruš 7 years ago
parent
commit
6521e1b9be
  1. 2
      src/Magnum/Platform/GlfwApplication.h
  2. 2
      src/Magnum/Platform/Sdl2Application.h

2
src/Magnum/Platform/GlfwApplication.h

@ -575,7 +575,7 @@ class GlfwApplication {
#ifdef MAGNUM_TARGET_GL
Containers::Pointer<Platform::GLContext> _context;
#endif
int _exitCode;
int _exitCode = 0;
Vector2i _minWindowSize;
Vector2i _maxWindowSize;

2
src/Magnum/Platform/Sdl2Application.h

@ -1039,7 +1039,7 @@ class Sdl2Application {
Flags _flags;
int _exitCode;
int _exitCode = 0;
};
#ifdef MAGNUM_TARGET_GL

Loading…
Cancel
Save