- fixed conditions for menu patching.

This commit is contained in:
Christoph Oelckers 2016-05-01 17:43:30 +02:00
parent 50ba1ecde8
commit 26acf8e994
4 changed files with 6 additions and 5 deletions

View file

@ -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.

View file

@ -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);

View file

@ -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.
**
**---------------------------------------------------------------------------

View file

@ -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
{