Properly reset texture flags when generating radiance
This commit is contained in:
parent
f7d99c9a1f
commit
756a37bcae
1 changed files with 3 additions and 0 deletions
|
@ -2071,6 +2071,9 @@ void RasterizerStorageGLES3::sky_set_texture(RID p_sky, RID p_panorama, int p_ra
|
|||
glTexParameterf(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameterf(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
|
||||
//reset flags on Sky Texture that may have changed
|
||||
texture_set_flags(sky->panorama, texture->flags);
|
||||
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, RasterizerStorageGLES3::system_fbo);
|
||||
glDeleteFramebuffers(1, &tmp_fb);
|
||||
glDeleteFramebuffers(1, &tmp_fb2);
|
||||
|
|
Loading…
Reference in a new issue