Add debug output to GL shader loading

This commit is contained in:
sfan5 2024-02-18 15:27:42 +01:00
parent e56605d7ce
commit 2894d9ab03

View File

@ -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();