Skip to content

Commit

Permalink
Merge pull request #43264 from clayjohn/GLES3-sky-filter
Browse files Browse the repository at this point in the history
Properly reset texture flags when generating radiance
  • Loading branch information
akien-mga authored Nov 1, 2020
2 parents f7d99c9 + 756a37b commit 5b94d97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gles3/rasterizer_storage_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b94d97

Please sign in to comment.