Fix typo in the javascript backend.

This commit is contained in:
Relintai 2022-03-16 09:05:33 +01:00
parent e85cef1745
commit d39f2a89a7

View File

@ -700,7 +700,7 @@ Error OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver,
bool gl_initialization_error = false; bool gl_initialization_error = false;
while (true) { while (true) {
if (gles3) { if (gles2) {
if (godot_js_display_has_webgl(1) && RasterizerGLES2::is_viable() == OK) { if (godot_js_display_has_webgl(1) && RasterizerGLES2::is_viable() == OK) {
attributes.majorVersion = 1; attributes.majorVersion = 1;
RasterizerGLES2::register_config(); RasterizerGLES2::register_config();