Reset filter/repeat state of textures in GL Compatibility renderer when render target is cleared

This commit is contained in:
clayjohn 2023-06-23 10:57:56 -07:00
parent 68193bee9a
commit cc89321c9c

View file

@ -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);