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:
Rémi Verschelde 2023-06-23 22:49:23 +02:00 committed by GitHub
commit 19e7490c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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