forked from Mirrorlandia_minetest/minetest
Disable HW stereo for IrrLicht 1.9 (not supported anymore)
This commit is contained in:
parent
d90e3ea88d
commit
4f9c33de64
@ -35,8 +35,10 @@ RenderingCore *createRenderingCore(const std::string &stereo_mode, IrrlichtDevic
|
|||||||
return new RenderingCoreAnaglyph(device, client, hud);
|
return new RenderingCoreAnaglyph(device, client, hud);
|
||||||
if (stereo_mode == "interlaced")
|
if (stereo_mode == "interlaced")
|
||||||
return new RenderingCoreInterlaced(device, client, hud);
|
return new RenderingCoreInterlaced(device, client, hud);
|
||||||
|
#ifdef STEREO_PAGEFLIP_SUPPORTED
|
||||||
if (stereo_mode == "pageflip")
|
if (stereo_mode == "pageflip")
|
||||||
return new RenderingCorePageflip(device, client, hud);
|
return new RenderingCorePageflip(device, client, hud);
|
||||||
|
#endif
|
||||||
if (stereo_mode == "sidebyside")
|
if (stereo_mode == "sidebyside")
|
||||||
return new RenderingCoreSideBySide(device, client, hud);
|
return new RenderingCoreSideBySide(device, client, hud);
|
||||||
if (stereo_mode == "topbottom")
|
if (stereo_mode == "topbottom")
|
||||||
|
@ -20,6 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
|
|
||||||
#include "pageflip.h"
|
#include "pageflip.h"
|
||||||
|
|
||||||
|
#ifdef STEREO_PAGEFLIP_SUPPORTED
|
||||||
|
|
||||||
void RenderingCorePageflip::initTextures()
|
void RenderingCorePageflip::initTextures()
|
||||||
{
|
{
|
||||||
hud = driver->addRenderTargetTexture(
|
hud = driver->addRenderTargetTexture(
|
||||||
@ -53,3 +55,5 @@ void RenderingCorePageflip::resetEye()
|
|||||||
driver->setRenderTarget(video::ERT_FRAME_BUFFER, false, false, skycolor);
|
driver->setRenderTarget(video::ERT_FRAME_BUFFER, false, false, skycolor);
|
||||||
RenderingCoreStereo::resetEye();
|
RenderingCoreStereo::resetEye();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // STEREO_PAGEFLIP_SUPPORTED
|
||||||
|
@ -21,6 +21,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "stereo.h"
|
#include "stereo.h"
|
||||||
|
|
||||||
|
// The support is absent in 1.9.0 (dropped in r5068)
|
||||||
|
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR <= 8)
|
||||||
|
#define STEREO_PAGEFLIP_SUPPORTED
|
||||||
|
|
||||||
class RenderingCorePageflip : public RenderingCoreStereo
|
class RenderingCorePageflip : public RenderingCoreStereo
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
@ -35,3 +39,5 @@ public:
|
|||||||
using RenderingCoreStereo::RenderingCoreStereo;
|
using RenderingCoreStereo::RenderingCoreStereo;
|
||||||
void drawAll() override;
|
void drawAll() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user