summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorNinni Pipping <ninni.pipping@gmail.com>2023-02-02 12:35:23 +0100
committerNinni Pipping <ninni.pipping@gmail.com>2023-02-02 13:20:29 +0100
commite241f871a41dcbfe9a4a398671137d131bb25f4a (patch)
tree0c53942a0abfb49913431555316a70ef491461e1 /drivers/gles3
parent2e506516ee1775caef9c2277fbbb2bab7fd7e14d (diff)
Fix texture rect transpose for OpenGL
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_canvas_gles3.cpp2
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) {