|
|
|
|
@ -268,13 +268,15 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) {
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef CORRADE_TARGET_EMSCRIPTEN |
|
|
|
|
Vector2i Sdl2Application::windowSize() { |
|
|
|
|
#ifndef CORRADE_TARGET_EMSCRIPTEN |
|
|
|
|
Vector2i size; |
|
|
|
|
SDL_GetWindowSize(_window, &size.x(), &size.y()); |
|
|
|
|
return size; |
|
|
|
|
#else |
|
|
|
|
return {_glContext->w, _glContext->h}; |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
void Sdl2Application::swapBuffers() { |
|
|
|
|
#ifndef CORRADE_TARGET_EMSCRIPTEN |
|
|
|
|
|