diff options
author | Saracen <SaracenOne@gmail.com> | 2015-11-19 23:47:25 +0000 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2015-11-19 23:47:25 +0000 |
commit | 2cc52bc3ffde14dd7685588e9b4884bf7f8cfa4e (patch) | |
tree | f99e60d0f5f6d022692994645cee17a2427e595f /drivers | |
parent | ff363c94db0d456e171aeacf10f11f5a51ca2ee3 (diff) |
Modification to GUI in 3D demo to show resolved viewport clipping bug and small fix to bug causing viewport clipping to be inverted.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index daac4123e0..8b70e7cfbf 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -9355,7 +9355,7 @@ void RasterizerGLES2::canvas_render_items(CanvasItem *p_item_list,int p_z,const if (current_rt) { x = current_clip->final_clip_rect.pos.x; - y = viewport.height - (current_clip->final_clip_rect.pos.y + current_clip->final_clip_rect.size.y); + y = current_clip->final_clip_rect.pos.y; w = current_clip->final_clip_rect.size.x; h = current_clip->final_clip_rect.size.y; } |