mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Add debug output to GL shader loading
This commit is contained in:
parent
e56605d7ce
commit
2894d9ab03
@ -314,6 +314,10 @@ COpenGL3DriverBase::~COpenGL3DriverBase()
|
||||
vsFile->read(*vertexShaderData, size);
|
||||
(*vertexShaderData)[size] = 0;
|
||||
}
|
||||
{
|
||||
auto tmp = std::string("Loaded ") + std::to_string(size) + " bytes for vertex shader " + vertexShaderName.c_str();
|
||||
os::Printer::log(tmp.c_str(), ELL_INFORMATION);
|
||||
}
|
||||
|
||||
size = fsFile->getSize();
|
||||
if (size)
|
||||
@ -326,6 +330,10 @@ COpenGL3DriverBase::~COpenGL3DriverBase()
|
||||
fsFile->read(*fragmentShaderData, size);
|
||||
(*fragmentShaderData)[size] = 0;
|
||||
}
|
||||
{
|
||||
auto tmp = std::string("Loaded ") + std::to_string(size) + " bytes for fragment shader " + fragmentShaderName.c_str();
|
||||
os::Printer::log(tmp.c_str(), ELL_INFORMATION);
|
||||
}
|
||||
|
||||
vsFile->drop();
|
||||
fsFile->drop();
|
||||
|
Loading…
Reference in New Issue
Block a user