diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-11 19:33:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 19:33:33 +0100 |
commit | e9d9fef7208b21fc963e9064e8d3337ab8769ca2 (patch) | |
tree | dac5243cc605c8d0ffba7c99010ff8a45d44d080 /editor | |
parent | 8c73e813134001e575b6f59e3b0100471c007410 (diff) | |
parent | f65debaf6832b728fa56d8e15354085622dd6883 (diff) |
Merge pull request #36110 from fire/vulkan_flip_screenshot
Don't flip screenshot.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4552ce1348..4440a747be 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2729,7 +2729,6 @@ void EditorNode::_save_screenshot(NodePath p_path) { Viewport *viewport = EditorInterface::get_singleton()->get_editor_viewport()->get_viewport(); viewport->set_clear_mode(Viewport::CLEAR_MODE_ONLY_NEXT_FRAME); Ref<Image> img = viewport->get_texture()->get_data(); - img->flip_y(); viewport->set_clear_mode(Viewport::CLEAR_MODE_ALWAYS); Error error = img->save_png(p_path); ERR_FAIL_COND_MSG(error != OK, "Cannot save screenshot to file '" + p_path + "'."); |