Update emscripten version

This commit is contained in:
Vladislav Khorev committed 2026-11-09 15:36:42 +06:00
1 parent ea8f64c940
commit 2a7498695a
18 files changed
+76 -66

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
#include "Environment.h"
#include "Environment.h"
#include "utils/Utils.h"
@@ -9,7 +9,7 @@
#include <GL/gl.h>
#endif
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#include <emscripten/html5.h>
#endif
@@ -27,7 +27,7 @@ bool Environment::enableLogging = false;
SDL_Window* Environment::window = nullptr;
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
bool Environment::isFullscreen = false;
#else
bool Environment::isFullscreen = true;
@@ -72,7 +72,7 @@ void Environment::computeProjectionDimensions()
}
void Environment::setFullscreen(bool enable) {
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
if (enable) {
EmscriptenFullscreenStrategy strategy{};
strategy.scaleMode = EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH;