Fix HTML5 build failed due to undefined symbol
This commit is contained in:
parent
40f2480d0e
commit
9773350537
1 changed files with 4 additions and 1 deletions
|
@ -4688,6 +4688,7 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
|
||||||
/* BACK FBO */
|
/* BACK FBO */
|
||||||
/* For MSAA */
|
/* For MSAA */
|
||||||
|
|
||||||
|
#ifndef JAVASCRIPT_ENABLED
|
||||||
if (rt->msaa != VS::VIEWPORT_MSAA_DISABLED && config.multisample_supported) {
|
if (rt->msaa != VS::VIEWPORT_MSAA_DISABLED && config.multisample_supported) {
|
||||||
|
|
||||||
rt->multisample_active = true;
|
rt->multisample_active = true;
|
||||||
|
@ -4743,7 +4744,9 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
|
||||||
|
|
||||||
glBindRenderbuffer(GL_RENDERBUFFER, 0);
|
glBindRenderbuffer(GL_RENDERBUFFER, 0);
|
||||||
|
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
rt->multisample_active = false;
|
rt->multisample_active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue