diff options
author | Ninni Pipping <ninni.pipping@gmail.com> | 2023-02-02 12:35:23 +0100 |
---|---|---|
committer | Ninni Pipping <ninni.pipping@gmail.com> | 2023-02-02 13:20:29 +0100 |
commit | e241f871a41dcbfe9a4a398671137d131bb25f4a (patch) | |
tree | 0c53942a0abfb49913431555316a70ef491461e1 /drivers | |
parent | 2e506516ee1775caef9c2277fbbb2bab7fd7e14d (diff) |
Fix texture rect transpose for OpenGL
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/rasterizer_canvas_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index 7f381b3f3e..d08f7ba7b6 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -920,7 +920,7 @@ void RasterizerCanvasGLES3::_record_item_commands(const Item *p_item, RID p_rend } if (rect->flags & CANVAS_RECT_TRANSPOSE) { - dst_rect.size.x *= -1; // Encoding in the dst_rect.z uniform + state.instance_data_array[r_index].flags |= FLAGS_TRANSPOSE_RECT; } if (rect->flags & CANVAS_RECT_CLIP_UV) { |