mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Fix texture rect transpose for OpenGL
This commit is contained in:
parent
2e506516ee
commit
e241f871a4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user