Fixed bugs in lazy shader compilation.
This commit is contained in:
@@ -19,7 +19,7 @@ void mesh_lookup::add(
|
||||
std::optional<zgl::shader_program_handle> mesh_lookup::find(
|
||||
requirements::mesh::flags requirements
|
||||
) const {
|
||||
auto capability = shader_program::capabilities::mesh::type{};
|
||||
auto capability = shader_program::features::mesh::type{};
|
||||
|
||||
auto index = std::size_t{};
|
||||
|
||||
@@ -30,7 +30,7 @@ std::optional<zgl::shader_program_handle> mesh_lookup::find(
|
||||
if (requirement_flags & 1)
|
||||
{
|
||||
const auto shader_requirements_index = requirements::mesh::all[index].shader_program_requirement_index;
|
||||
const auto& [ attributes, uniforms ] = shader_program::capabilities::mesh::all[shader_requirements_index];
|
||||
const auto& [ attributes, uniforms ] = shader_program::features::mesh::all[shader_requirements_index];
|
||||
capability.attributes |= attributes;
|
||||
capability.uniforms |= uniforms;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user