Remove some others deprecated calls
This commit is contained in:
parent
3b393b8618
commit
b79e969b11
@ -2530,14 +2530,16 @@ bool COpenGLDriver::setActiveTexture(u32 stage, const video::ITexture* texture)
|
|||||||
|
|
||||||
if (!texture)
|
if (!texture)
|
||||||
{
|
{
|
||||||
glDisable(GL_TEXTURE_2D);
|
if (!useCoreContext)
|
||||||
|
glDisable(GL_TEXTURE_2D);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (texture->getDriverType() != EDT_OPENGL)
|
if (texture->getDriverType() != EDT_OPENGL)
|
||||||
{
|
{
|
||||||
glDisable(GL_TEXTURE_2D);
|
if (!useCoreContext)
|
||||||
|
glDisable(GL_TEXTURE_2D);
|
||||||
CurrentTexture.set(stage, 0);
|
CurrentTexture.set(stage, 0);
|
||||||
os::Printer::log("Fatal Error: Tried to set a texture not owned by this driver.", ELL_ERROR);
|
os::Printer::log("Fatal Error: Tried to set a texture not owned by this driver.", ELL_ERROR);
|
||||||
return false;
|
return false;
|
||||||
|
@ -46,6 +46,14 @@
|
|||||||
|
|
||||||
#include <ICameraSceneNode.h>
|
#include <ICameraSceneNode.h>
|
||||||
|
|
||||||
|
namespace irr
|
||||||
|
{
|
||||||
|
namespace video
|
||||||
|
{
|
||||||
|
extern bool useCoreContext;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RaceGUIBase::RaceGUIBase()
|
RaceGUIBase::RaceGUIBase()
|
||||||
{
|
{
|
||||||
m_ignore_unimportant_messages = false;
|
m_ignore_unimportant_messages = false;
|
||||||
@ -418,7 +426,8 @@ void RaceGUIBase::renderPlayerView(const Camera *camera, float dt)
|
|||||||
glviewport[3] = viewport.LowerRightCorner.Y;
|
glviewport[3] = viewport.LowerRightCorner.Y;
|
||||||
//glGetIntegerv(GL_VIEWPORT, glviewport);
|
//glGetIntegerv(GL_VIEWPORT, glviewport);
|
||||||
|
|
||||||
glDisable(GL_TEXTURE_2D);
|
if (!irr::video::useCoreContext)
|
||||||
|
glDisable(GL_TEXTURE_2D);
|
||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
@ -433,7 +442,8 @@ void RaceGUIBase::renderPlayerView(const Camera *camera, float dt)
|
|||||||
glVertex3d(glviewport[2],glviewport[3],0);
|
glVertex3d(glviewport[2],glviewport[3],0);
|
||||||
glVertex3d(glviewport[2],glviewport[1],0);
|
glVertex3d(glviewport[2],glviewport[1],0);
|
||||||
glEnd();
|
glEnd();
|
||||||
glEnable(GL_TEXTURE_2D);
|
if (!irr::video::useCoreContext)
|
||||||
|
glEnable(GL_TEXTURE_2D);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user