Merge branch 'oglshearfix' into 'master'

Fix OGL shearing visually breaking when looking 90 degrees up or down

See merge request KartKrew/Kart-Public!344
This commit is contained in:
Sal 2024-03-30 01:24:20 +00:00
commit 447af8a0c8

View file

@ -23,6 +23,10 @@
#include "z_zone.h"
#include "console.h" // con_startup_loadprogress
#ifdef HWRENDER
#include "hardware/hw_main.h" // for cv_grshearing
#endif
static CV_PossibleValue_t fpscap_cons_t[] = {
#ifdef DEVELOP
// Lower values are actually pretty useful for debugging interp problems!
@ -119,7 +123,11 @@ static void R_SetupFreelook(player_t *player, boolean skybox)
// clip it in the case we are looking a hardware 90 degrees full aiming
// (lmps, network and use F12...)
if (rendermode == render_soft)
if (rendermode == render_soft
#ifdef HWRENDER
|| (rendermode == render_opengl && cv_grshearing.value)
#endif
)
{
G_SoftwareClipAimingPitch((INT32 *)&aimingangle);
}