mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
OpenGL3: Support min/max blend modes
This commit is contained in:
@ -1405,6 +1405,18 @@ COpenGL3DriverBase::~COpenGL3DriverBase()
|
||||
case EBO_REVSUBTRACT:
|
||||
CacheHandler->setBlendEquation(GL_FUNC_REVERSE_SUBTRACT);
|
||||
break;
|
||||
case EBO_MIN:
|
||||
if (BlendMinMaxSupported)
|
||||
CacheHandler->setBlendEquation(GL_MIN);
|
||||
else
|
||||
os::Printer::log("Attempt to use EBO_MIN without driver support", ELL_WARNING);
|
||||
break;
|
||||
case EBO_MAX:
|
||||
if (BlendMinMaxSupported)
|
||||
CacheHandler->setBlendEquation(GL_MAX);
|
||||
else
|
||||
os::Printer::log("Attempt to use EBO_MAX without driver support", ELL_WARNING);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -166,6 +166,7 @@ namespace video
|
||||
}
|
||||
|
||||
bool AnisotropicFilterSupported = false;
|
||||
bool BlendMinMaxSupported = false;
|
||||
|
||||
private:
|
||||
void addExtension(std::string name);
|
||||
|
Reference in New Issue
Block a user