Style nit

This commit is contained in:
libretroadmin 2025-07-17 05:54:24 +02:00
parent daeb46cf5a
commit 807866d799
2 changed files with 11 additions and 12 deletions

View File

@ -1384,13 +1384,14 @@ static void gl_glsl_set_params(void *dat, void *shader_data)
if (uni->core_aspect >= 0)
glUniform1f(uni->core_aspect, video_driver_get_core_aspect());
if (uni->core_aspect_rot >= 0) {
/* OriginalAspectRotated: return 1/aspect for 90 and 270 rotated content */
float core_aspect_rot = video_driver_get_core_aspect();
uint32_t rot = retroarch_get_rotation();
if (rot == 1 || rot == 3)
core_aspect_rot = 1/core_aspect_rot;
glUniform1f(uni->core_aspect_rot, core_aspect_rot);
if (uni->core_aspect_rot >= 0)
{
/* OriginalAspectRotated: return 1/aspect for 90 and 270 rotated content */
float core_aspect_rot = video_driver_get_core_aspect();
uint32_t rot = retroarch_get_rotation();
if (rot == 1 || rot == 3)
core_aspect_rot = 1/core_aspect_rot;
glUniform1f(uni->core_aspect_rot, core_aspect_rot);
}
/* Set lookup textures. */

View File

@ -5937,13 +5937,11 @@ int rarch_main(int argc, char *argv[], void *data)
#endif
#if defined(WEBOS)
// compatibility with webOS 3 - 5
if (getenv("EGL_PLATFORM") == NULL) {
/* compatibility with webOS 3 - 5 */
if (getenv("EGL_PLATFORM") == NULL)
setenv("EGL_PLATFORM", "wayland", 0);
}
if(getenv("XDG_RUNTIME_DIR") == NULL) {
if (getenv("XDG_RUNTIME_DIR") == NULL)
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
}
struct rlimit limit = {0, 0};
setrlimit(RLIMIT_CORE, &limit);