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