Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Add debug output to GL shader loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 18, 2024
1 parent f91be59 commit 666f8e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/Irrlicht/OpenGL/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
Expand Down

0 comments on commit 666f8e2

Please sign in to comment.