mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 21:41:30 +00:00
- fixed conditions for menu patching.
This commit is contained in:
parent
50ba1ecde8
commit
26acf8e994
4 changed files with 6 additions and 5 deletions
|
@ -37,6 +37,7 @@
|
|||
**
|
||||
*/
|
||||
#include "gl/system/gl_system.h"
|
||||
#include "menu/menu.h"
|
||||
#include "tarray.h"
|
||||
#include "doomtype.h"
|
||||
#include "m_argv.h"
|
||||
|
@ -63,7 +64,7 @@
|
|||
|
||||
void gl_PatchMenu()
|
||||
{
|
||||
if (gl.compatibility == CMPT_GL2)
|
||||
if (gl.glslversion == 0)
|
||||
{
|
||||
// Radial fog and Doom lighting are not available in SM < 4 cards
|
||||
// The way they are implemented does not work well on older hardware.
|
||||
|
|
|
@ -836,7 +836,7 @@ sector_t * FGLRenderer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, flo
|
|||
SetProjection( eye->GetProjection(fov, ratio, fovratio) );
|
||||
// SetProjection(fov, ratio, fovratio); // switch to perspective mode and set up clipper
|
||||
SetViewAngle(ViewAngle);
|
||||
// Stereo mode specific viewpoint adjustment - temporarily shifts global viewx, viewy, viewz
|
||||
// Stereo mode specific viewpoint adjustment - temporarily shifts global ViewPos
|
||||
eye->GetViewShift(GLRenderer->mAngles.Yaw.Degrees, viewShift);
|
||||
s3d::ScopedViewShifter viewShifter(viewShift);
|
||||
SetViewMatrix(ViewPos.X, ViewPos.Y, ViewPos.Z, false, false);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
** scoped_view_shifter.cpp
|
||||
** Stack-scoped class for temporarily changing player viewpoint global variables viewx, viewy, viewz.
|
||||
** Stack-scoped class for temporarily changing camera viewpoint
|
||||
** Used for stereoscopic 3D.
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
** scoped_view_shifter.h
|
||||
** Stack-scoped class for temporarily changing player viewpoint global variables viewx, viewy, viewz.
|
||||
** Stack-scoped class for temporarily changing camera viewpoint
|
||||
** Used for stereoscopic 3D.
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
|
@ -43,7 +43,7 @@
|
|||
namespace s3d {
|
||||
|
||||
/**
|
||||
* Temporarily shift viewx, viewy, viewz
|
||||
* Temporarily shift
|
||||
*/
|
||||
class ScopedViewShifter
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue