Browse Source

Platform: fixed assertions.

pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
2dd61a4dcd
  1. 2
      src/Platform/AbstractXApplication.cpp
  2. 2
      src/Platform/WindowlessGlxApplication.cpp

2
src/Platform/AbstractXApplication.cpp

@ -51,7 +51,7 @@ void AbstractXApplication::createContext(const Configuration& configuration) {
} }
bool AbstractXApplication::tryCreateContext(const Configuration& configuration) { bool AbstractXApplication::tryCreateContext(const Configuration& configuration) {
CORRADE_ASSERT(!c, "AbstractXApplication::tryCreateContext(): context already created", ); CORRADE_ASSERT(!c, "AbstractXApplication::tryCreateContext(): context already created", false);
viewportSize = configuration.size(); viewportSize = configuration.size();

2
src/Platform/WindowlessGlxApplication.cpp

@ -54,7 +54,7 @@ void WindowlessGlxApplication::createContext(const Configuration& configuration)
} }
bool WindowlessGlxApplication::tryCreateContext(const Configuration&) { bool WindowlessGlxApplication::tryCreateContext(const Configuration&) {
CORRADE_ASSERT(!c, "Platform::WindowlessGlxApplication::tryCreateContext(): context already created", ); CORRADE_ASSERT(!c, "Platform::WindowlessGlxApplication::tryCreateContext(): context already created", false);
display = XOpenDisplay(nullptr); display = XOpenDisplay(nullptr);

Loading…
Cancel
Save