aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/OpenGL/Driver.cpp
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2023-03-02 03:03:17 +0300
committernumzero <numzer0@yandex.ru>2023-03-02 03:03:17 +0300
commit29320653463045fad20d6681cef563a37a1aeb9e (patch)
treee9f448550ac4a99858c6ce9c4a1e342f08e5b32b /source/Irrlicht/OpenGL/Driver.cpp
parent1326dfbcb1f6e9f69f136dccd1e05f9bc30896f4 (diff)
downloadirrlicht-29320653463045fad20d6681cef563a37a1aeb9e.tar.xz
Report as OpenGL 3
Diffstat (limited to 'source/Irrlicht/OpenGL/Driver.cpp')
-rw-r--r--source/Irrlicht/OpenGL/Driver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Irrlicht/OpenGL/Driver.cpp b/source/Irrlicht/OpenGL/Driver.cpp
index baa6f44..6a60316 100644
--- a/source/Irrlicht/OpenGL/Driver.cpp
+++ b/source/Irrlicht/OpenGL/Driver.cpp
@@ -1722,7 +1722,7 @@ COpenGL3Driver::~COpenGL3Driver()
//! Returns type of video driver
E_DRIVER_TYPE COpenGL3Driver::getDriverType() const
{
- return EDT_OGLES2;
+ return EDT_OPENGL3;
}
@@ -1905,9 +1905,9 @@ COpenGL3Driver::~COpenGL3Driver()
bool COpenGL3Driver::setRenderTargetEx(IRenderTarget* target, u16 clearFlag, SColor clearColor, f32 clearDepth, u8 clearStencil)
{
- if (target && target->getDriverType() != EDT_OGLES2 && target->getDriverType() != EDT_WEBGL1)
+ if (target && target->getDriverType() != EDT_OPENGL3)
{
- os::Printer::log("Fatal Error: Tried to set a render target not owned by OGLES2 driver.", ELL_ERROR);
+ os::Printer::log("Fatal Error: Tried to set a render target not owned by OpenGL 3 driver.", ELL_ERROR);
return false;
}