diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-21 21:36:30 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-21 21:38:01 -0300 |
commit | 00a26f512c0357aa02ff44130e0ea6751ddc5cd9 (patch) | |
tree | b876ec2a09113df55f660b125ea3660f885e3ef3 /drivers/gles3/rasterizer_storage_gles3.cpp | |
parent | b3ff7ca62e3a431008466df3ef204934ee8cb497 (diff) |
Several fixes to subsurface scattering. Closes #9530
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index dc9006a4e1..68731308a9 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -6253,7 +6253,7 @@ void RasterizerStorageGLES3::_render_target_allocate(RenderTarget *rt) { glBindFramebuffer(GL_FRAMEBUFFER, mm.fbo); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, rt->effects.mip_maps[i].color, j); bool used_depth = false; - if (j == 0 && i == 0 && rt->buffers.active == false && !rt->flags[RENDER_TARGET_NO_3D]) { //will use this one for rendering 3D + if (j == 0 && i == 0) { //use always glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, rt->depth, 0); used_depth = true; } |