diff --git a/ecere/ecere.epj b/ecere/ecere.epj index 1478b6ee66..61ecbcbead 100644 --- a/ecere/ecere.epj +++ b/ecere/ecere.epj @@ -478,7 +478,6 @@ "Name" : "Emscripten", "Options" : { "Warnings" : "Normal", - "Debug" : true, "Optimization" : "Speed", "PreprocessorDefinitions" : [ "ETC2_COMPRESS", diff --git a/ecere/src/gfx/drivers/gl3/glab.ec b/ecere/src/gfx/drivers/gl3/glab.ec index bd190d4374..1275482532 100644 --- a/ecere/src/gfx/drivers/gl3/glab.ec +++ b/ecere/src/gfx/drivers/gl3/glab.ec @@ -925,8 +925,13 @@ public struct GLFB this.h = height; { +#if !defined(_DEBUG) && defined(__EMSCRIPTEN__) + // Expensive check in WebGL? + result = true; +#else int status = glCheckFramebufferStatus(GL_FRAMEBUFFER); result = status == GL_FRAMEBUFFER_COMPLETE; +#endif #ifdef _DEBUG if(!result)