Merge pull request #16834 from bojidar-bg/x-rendering-gles3-bug
Fix a rendering bug with screen_texture
This commit is contained in:
commit
4b562aaf0c
1 changed files with 4 additions and 6 deletions
|
@ -993,13 +993,11 @@ void RasterizerCanvasGLES3::_copy_texscreen(const Rect2 &p_rect) {
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, storage->frame.current_rt->fbo); //back to front
|
glBindFramebuffer(GL_FRAMEBUFFER, storage->frame.current_rt->fbo); //back to front
|
||||||
glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
|
glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
|
||||||
|
|
||||||
state.canvas_shader.bind(); //back to canvas
|
// back to canvas, force rebind
|
||||||
_bind_canvas_texture(state.current_tex, state.current_normal);
|
state.using_texture_rect = true;
|
||||||
|
_set_texture_rect_mode(false);
|
||||||
|
|
||||||
if (state.using_texture_rect) {
|
_bind_canvas_texture(state.current_tex, state.current_normal);
|
||||||
state.using_texture_rect = false;
|
|
||||||
_set_texture_rect_mode(state.using_texture_rect, state.using_ninepatch);
|
|
||||||
}
|
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue