mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Fix OGL shearing visually breaking when looking 90 degrees up or down
This commit is contained in:
parent
62294dfe35
commit
17e24bb8e2
1 changed files with 9 additions and 1 deletions
10
src/r_fps.c
10
src/r_fps.c
|
@ -23,6 +23,10 @@
|
||||||
#include "z_zone.h"
|
#include "z_zone.h"
|
||||||
#include "console.h" // con_startup_loadprogress
|
#include "console.h" // con_startup_loadprogress
|
||||||
|
|
||||||
|
#ifdef HWRENDER
|
||||||
|
#include "hardware/hw_main.h" // for cv_grshearing
|
||||||
|
#endif
|
||||||
|
|
||||||
static CV_PossibleValue_t fpscap_cons_t[] = {
|
static CV_PossibleValue_t fpscap_cons_t[] = {
|
||||||
#ifdef DEVELOP
|
#ifdef DEVELOP
|
||||||
// Lower values are actually pretty useful for debugging interp problems!
|
// 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
|
// clip it in the case we are looking a hardware 90 degrees full aiming
|
||||||
// (lmps, network and use F12...)
|
// (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);
|
G_SoftwareClipAimingPitch((INT32 *)&aimingangle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue