Skip to content

Commit

Permalink
Fix out of order shader log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
VReaperV committed Jan 8, 2025
1 parent 992eb50 commit 93da5d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine/renderer/gl_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,12 @@ std::vector<GLShaderManager::InfoLogEntry> GLShaderManager::ParseInfoLog( const
}
}

// Messages in the log can sometimes be out of order
std::sort( out.begin(), out.end(),
[]( const InfoLogEntry& lhs, const InfoLogEntry& rhs ) {
lhs.line < rhs.line;
} );

return out;
}

Expand Down

0 comments on commit 93da5d8

Please sign in to comment.