mirror of
https://github.com/godotengine/godot.git
synced 2024-11-13 07:32:55 +00:00
Fixed canvas clipping on offscreen viewports.
This commit is contained in:
parent
b2f9acb8c9
commit
5072134f41
@ -9349,7 +9349,7 @@ void RasterizerGLES2::canvas_render_items(CanvasItem *p_item_list,int p_z,const
|
||||
int h = current_clip->final_clip_rect.size.y;
|
||||
*/
|
||||
int x = current_clip->final_clip_rect.pos.x;
|
||||
int y = window_size.height-(current_clip->final_clip_rect.pos.y+current_clip->final_clip_rect.size.y);
|
||||
int y = viewport.height-(current_clip->final_clip_rect.pos.y+current_clip->final_clip_rect.size.y);
|
||||
int w = current_clip->final_clip_rect.size.x;
|
||||
int h = current_clip->final_clip_rect.size.y;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user