Fix shader loading check for empty streams

This commit is contained in:
Lukas Dürrenberger 2023-12-31 23:30:13 +01:00 committed by Chris Thrasher
parent be5c52a1fc
commit f46c888e9b

View File

@ -100,7 +100,7 @@ bool getFileContents(const std::filesystem::path& filename, std::vector<char>& b
// Read the contents of a stream into an array of char
bool getStreamContents(sf::InputStream& stream, std::vector<char>& buffer)
{
bool success = true;
bool success = false;
const std::int64_t size = stream.getSize();
if (size > 0)
{