summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-06-15 05:05:21 +0100
committerGitHub <noreply@github.com>2019-06-15 05:05:21 +0100
commit7e108da078dc69b8321de2435f8c8187fe6c70e8 (patch)
tree17d8561faf80193ffb31ea674c8238d9b649d903
parente9999290241d81ac6f67686cf3704705a430262c (diff)
parent9773350537d5de1c460fa3f20f0a316b97651413 (diff)
Merge pull request #29783 from Faless/js/fix_build
Fix HTML5 build failed due to undefined symbol
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index 7b5f193b2b..e4b47814b2 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -4688,6 +4688,7 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
/* BACK FBO */
/* For MSAA */
+#ifndef JAVASCRIPT_ENABLED
if (rt->msaa != VS::VIEWPORT_MSAA_DISABLED && config.multisample_supported) {
rt->multisample_active = true;
@@ -4743,7 +4744,9 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
glBindRenderbuffer(GL_RENDERBUFFER, 0);
- } else {
+ } else
+#endif
+ {
rt->multisample_active = false;
}