godot/servers/rendering
Matias N. Goldberg b9a2f108fc Fix splash screen upside down on Android
Fixes an issue introduced in #96439 (see
https://github.com/godotengine/godot/pull/96439#issuecomment-2447288702)

Godot was relying on Java's
activity.getWindowManager().getDefaultDisplay().getRotation(); to apply
pre-rotation but this is wrong.

First, getRotation() may temporarily return a different value from the
correct one; which is what was causing the splash screen to be upside
down. It would return -90 instead of 90 for the first rendered frame.

But unfortunately, the splash screen is just one frame rendered for a
very long time, so the error lingered for a long time for everyone to
see.

Second, to determine what rotation to use, we should be looking at what
Vulkan told us, which is the value we pass to
VkSurfaceTransformFlagBitsKHR::preTransform.

This commit removes the now-unnecessary
screen_get_internal_current_rotation() function (which was introduced by
#96439) and now saves the preTransform value in the swapchain.
2024-10-31 16:52:26 -03:00
..
dummy Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
environment Reset SDFGI when changing editor scene tabs 2023-08-30 19:50:05 +03:00
renderer_rd Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
storage Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
renderer_canvas_cull.cpp Revert incorrect rounding when 2D transform snapping 2024-10-15 10:43:42 +02:00
renderer_canvas_cull.h Don't recalculate final render transforms for Y-sorted canvas items 2024-09-05 17:45:38 +02:00
renderer_canvas_render.cpp Avoid crashes when engine leaks canvas items and friends 2023-12-20 13:19:46 +01:00
renderer_canvas_render.h Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
renderer_compositor.cpp fix missing cleanup and null checks for various singletons 2024-06-18 01:05:30 -07:00
renderer_compositor.h Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
renderer_geometry_instance.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
renderer_geometry_instance.h Expose RD::texture_native_handle 2023-06-14 09:58:08 +10:00
renderer_scene_cull.cpp Merge pull request #85338 from EMBYRDEV/shadow-caster-mask 2024-10-24 13:22:59 -05:00
renderer_scene_cull.h Merge pull request #85338 from EMBYRDEV/shadow-caster-mask 2024-10-24 13:22:59 -05:00
renderer_scene_occlusion_cull.cpp Jitter raster occlusion camera to reduce false positives. 2024-04-03 12:18:45 +01:00
renderer_scene_occlusion_cull.h Merge pull request #97934 from adamscott/give-AThousandShips-a-break 2024-10-29 19:25:36 -05:00
renderer_scene_render.cpp Jitter shadow map dithering pattern across frames when TAA is enabled 2024-09-24 15:52:07 -07:00
renderer_scene_render.h Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
renderer_viewport.cpp Apply snap 2D transforms to pixel to viewport 2024-09-23 20:34:11 +08:00
renderer_viewport.h Ensure MovieWriter output is in gamma space when using HDR 2D 2024-05-28 15:30:13 -07:00
rendering_context_driver.cpp Disable extra memory tracking by default 2024-08-24 20:52:39 -03:00
rendering_context_driver.h Disable extra memory tracking by default 2024-08-24 20:52:39 -03:00
rendering_device_binds.cpp fix headless import attempting to load graphics driver 2024-10-22 16:17:09 -04:00
rendering_device_binds.h Implement hooks into renderer 2024-02-18 21:54:21 +11:00
rendering_device_commons.cpp Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
rendering_device_commons.h Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
rendering_device_driver.cpp Move transitions of textures initialized by transfer workers to the main graphics queue. 2024-10-18 09:15:25 -03:00
rendering_device_driver.h Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
rendering_device_graph.cpp Merge pull request #97247 from thimenesup/draw_indirect_rd 2024-10-29 19:25:57 -05:00
rendering_device_graph.h Merge pull request #97247 from thimenesup/draw_indirect_rd 2024-10-29 19:25:57 -05:00
rendering_device.compat.inc Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
rendering_device.cpp Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
rendering_device.h Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
rendering_light_culler.cpp Tighter light culling - fix directional lights colinear case 2024-05-10 09:13:05 +01:00
rendering_light_culler.h Tight shadow culling - increase epsilon to prevent flickering 2024-05-18 14:14:27 +01:00
rendering_method.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rendering_method.h Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
rendering_server_constants.h Fixed Timestep Interpolation (3D) 2024-07-07 22:15:23 +02:00
rendering_server_default.cpp Implement thread ownership change for RenderingDevice 2024-10-21 20:56:42 +02:00
rendering_server_default.h Merge pull request #85338 from EMBYRDEV/shadow-caster-mask 2024-10-24 13:22:59 -05:00
rendering_server_globals.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rendering_server_globals.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
shader_compiler.cpp Merge pull request #92441 from Chaosus/shader_custom_func_overloads 2024-10-14 14:09:59 -05:00
shader_compiler.h Fix broken sky shader 2024-09-13 08:53:26 +03:00
shader_language.cpp Merge pull request #93590 from Chaosus/shader_custom_func_discard 2024-10-24 09:38:10 +03:00
shader_language.h Merge pull request #93590 from Chaosus/shader_custom_func_discard 2024-10-24 09:38:10 +03:00
shader_preprocessor.cpp Add #error preprocessor directive to shading language 2024-10-18 10:56:58 +03:00
shader_preprocessor.h Add #error preprocessor directive to shading language 2024-10-18 10:56:58 +03:00
shader_types.cpp Make OUTPUT_IS_SRGB/CLIP_SPACE_FAR shader built-ins global 2024-10-24 12:32:05 +03:00
shader_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
shader_warnings.cpp Warn users when assigning VERTEX directly to POSITION due to compatibility breakage from reverse z changes 2024-04-12 10:38:35 -07:00
shader_warnings.h Warn users when assigning VERTEX directly to POSITION due to compatibility breakage from reverse z changes 2024-04-12 10:38:35 -07:00