diff --git a/gfx/drivers_shader/shader_glsl.c b/gfx/drivers_shader/shader_glsl.c index 43ee243fa7..b5b90c708e 100644 --- a/gfx/drivers_shader/shader_glsl.c +++ b/gfx/drivers_shader/shader_glsl.c @@ -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. */ diff --git a/retroarch.c b/retroarch.c index 81732a36ae..bb74c31c08 100644 --- a/retroarch.c +++ b/retroarch.c @@ -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);