diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-28 10:03:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 10:03:07 +0200 |
commit | 199ea349f5d6e561150c38480146d486ceae5ca0 (patch) | |
tree | f6fe9323b3d9535c56778beb7c4791124fa206a8 /drivers | |
parent | 72e9122514bafb2237dfed0815ffccadc97b10d0 (diff) | |
parent | 2bf9e6090c6d121bc1fddf4d82319a524ad0d963 (diff) |
Merge pull request #57698 from bluenote10/feature/rename_translated_to_translated_local
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 a5dec393bb..e37c10b4b1 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -135,7 +135,7 @@ void RasterizerCanvasGLES3::canvas_render_items(RID p_to_render_target, Item *p_ Size2i ssize = texture_storage->render_target_get_size(p_to_render_target); Transform3D screen_transform; - screen_transform.translate(-(ssize.width / 2.0f), -(ssize.height / 2.0f), 0.0f); + screen_transform.translate_local(-(ssize.width / 2.0f), -(ssize.height / 2.0f), 0.0f); screen_transform.scale(Vector3(2.0f / ssize.width, 2.0f / ssize.height, 1.0f)); _update_transform_to_mat4(screen_transform, state_buffer.screen_transform); _update_transform_2d_to_mat4(p_canvas_transform, state_buffer.canvas_transform); |