mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Fix macOS and other builds after #15299
Commit ammended by @akien-mga to fix more platforms.
This commit is contained in:
parent
6e2ed15ff1
commit
322cb08dd9
5 changed files with 8 additions and 7 deletions
|
@ -429,7 +429,7 @@ Error OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver,
|
|||
attributes.antialias = false;
|
||||
attributes.majorVersion = 2;
|
||||
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE ctx = emscripten_webgl_create_context(NULL, &attributes);
|
||||
ERR_FAIL_COND(emscripten_webgl_make_context_current(ctx) != EMSCRIPTEN_RESULT_SUCCESS, ERR_UNAVAILABLE);
|
||||
ERR_FAIL_COND_V(emscripten_webgl_make_context_current(ctx) != EMSCRIPTEN_RESULT_SUCCESS, ERR_UNAVAILABLE);
|
||||
|
||||
video_mode = p_desired;
|
||||
// can't fulfil fullscreen request due to browser security
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue