mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Rewrite shaders to use OpenGL ES3 syntax
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
9b3507211f
commit
6d0daf6fe7
@@ -95,7 +95,7 @@ void GLGpuProgram::LoadUniformLocations()
|
||||
std::string name;
|
||||
GLFunctions::glGetActiveUniform(m_programID, static_cast<uint32_t>(i), &size, &info.m_type, name);
|
||||
CHECK(kSupportedTypes.find(info.m_type) != kSupportedTypes.cend(),
|
||||
("Used uniform has unsupported type. Program =", m_programName, "Type =", info.m_type));
|
||||
("Used uniform has unsupported type. Program =", m_programName, "; Type =", info.m_type, "; Name =", name));
|
||||
|
||||
info.m_location = GLFunctions::glGetUniformLocation(m_programID, name);
|
||||
m_uniforms[name] = std::move(info);
|
||||
|
||||
Reference in New Issue
Block a user