Skip to content

Commit

Permalink
Merge pull request #78620 from clayjohn/GL-viewport
Browse files Browse the repository at this point in the history
Reset filter/repeat state of textures in GL Compatibility renderer when render target is cleared
  • Loading branch information
akien-mga authored Jun 23, 2023
2 parents afe65de + cc89321 commit 19e7490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles3/storage/texture_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,8 @@ void TextureStorage::_clear_render_target(RenderTarget *rt) {
tex->active = false;
tex->render_target = nullptr;
tex->is_render_target = false;
tex->gl_set_filter(RS::CANVAS_ITEM_TEXTURE_FILTER_MAX);
tex->gl_set_repeat(RS::CANVAS_ITEM_TEXTURE_REPEAT_MAX);
}
} else {
Texture *tex = get_texture(rt->overridden.color);
Expand Down

0 comments on commit 19e7490

Please sign in to comment.