Merge pull request #72586 from AThousandShips/compat_transpose_fix

Fix texture rect transpose for OpenGL
This commit is contained in:
Rémi Verschelde 2023-02-02 21:04:22 +01:00
commit fc7429d5fe
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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) {