mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix shader loading check for empty streams
This commit is contained in:
parent
be5c52a1fc
commit
f46c888e9b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user