summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_canvas_gles3.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-02 21:04:22 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-02 21:04:22 +0100
commitfc7429d5fed7e36d7344c96250e661d222e0defe (patch)
treedae59338e0195c444c2f90931615fd9c346c6b1c /drivers/gles3/rasterizer_canvas_gles3.cpp
parent18e827ee46b00f6909c8c3b56bcd07d332b89cdc (diff)
parente241f871a41dcbfe9a4a398671137d131bb25f4a (diff)
Merge pull request #72586 from AThousandShips/compat_transpose_fix
Fix texture rect transpose for OpenGL
Diffstat (limited to 'drivers/gles3/rasterizer_canvas_gles3.cpp')
-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) {