mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 18:20: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);
|
vsFile->read(*vertexShaderData, size);
|
||||||
(*vertexShaderData)[size] = 0;
|
(*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();
|
size = fsFile->getSize();
|
||||||
if (size)
|
if (size)
|
||||||
@ -326,6 +330,10 @@ COpenGL3DriverBase::~COpenGL3DriverBase()
|
|||||||
fsFile->read(*fragmentShaderData, size);
|
fsFile->read(*fragmentShaderData, size);
|
||||||
(*fragmentShaderData)[size] = 0;
|
(*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();
|
vsFile->drop();
|
||||||
fsFile->drop();
|
fsFile->drop();
|
||||||
|
Loading…
Reference in New Issue
Block a user