Skip to content

Commit

Permalink
stop crash with vec3 uniforms
Browse files Browse the repository at this point in the history
(remove legacy bullshit)
  • Loading branch information
RicardoLuis0 authored and nashmuhandes committed Jan 13, 2025
1 parent 6ba2cff commit 54b8dbc
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1157,13 +1157,6 @@ void UserUniforms::AddUniformField(size_t &offset, const FString &name, UniformT
FieldNames.Insert(name, Fields.size());
Fields.push_back({ name, type, offset });
offset += fieldsize;

if (fieldsize != alignment) // Workaround for buggy OpenGL drivers that does not do std140 layout correctly for vec3
{
FString name2 = name + "_F39350FF12DE_padding";
Fields.push_back({ name2, UniformType::Float, offset });
offset += alignment - fieldsize;
}
}


Expand Down

0 comments on commit 54b8dbc

Please sign in to comment.