Reset filter/repeat state of textures in GL Compatibility renderer when render target is cleared
This commit is contained in:
parent
68193bee9a
commit
cc89321c9c
1 changed files with 2 additions and 0 deletions
|
@ -1938,6 +1938,8 @@ void TextureStorage::_clear_render_target(RenderTarget *rt) {
|
||||||
tex->active = false;
|
tex->active = false;
|
||||||
tex->render_target = nullptr;
|
tex->render_target = nullptr;
|
||||||
tex->is_render_target = false;
|
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 {
|
} else {
|
||||||
Texture *tex = get_texture(rt->overridden.color);
|
Texture *tex = get_texture(rt->overridden.color);
|
||||||
|
|
Loading…
Reference in a new issue