Merge pull request #78620 from clayjohn/GL-viewport
Reset filter/repeat state of textures in GL Compatibility renderer when render target is cleared
This commit is contained in:
commit
19e7490c9a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue