Fix HTML5 build failed due to undefined symbol

This commit is contained in:
Fabio Alessandrelli 2019-06-14 17:50:41 +02:00
parent 40f2480d0e
commit 9773350537

View file

@ -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;
}