Report as OpenGL 3

This commit is contained in:
numzero 2023-03-02 03:03:17 +03:00
parent 1326dfbcb1
commit 2932065346

@ -1722,7 +1722,7 @@ COpenGL3Driver::~COpenGL3Driver()
//! Returns type of video driver //! Returns type of video driver
E_DRIVER_TYPE COpenGL3Driver::getDriverType() const 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) 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; return false;
} }