Skip to content

Commit

Permalink
Fixed RasterizerWorkItem compile error on AppleClang.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Jul 21, 2024
1 parent f322f15 commit 5af9bb1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions OpenTESArena/src/Rendering/SoftwareRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,20 @@ namespace
struct RasterizerWorkItem
{
int binX, binY, binIndex;

RasterizerWorkItem()
{
this->binX = -1;
this->binY = -1;
this->binIndex = -1;
}

RasterizerWorkItem(int binX, int binY, int binIndex)
{
this->binX = binX;
this->binY = binY;
this->binIndex = binIndex;
}
};

// A selection of triangle indices in a mesh tied to one of the worker's draw calls.
Expand Down

0 comments on commit 5af9bb1

Please sign in to comment.