Add return value for texture loading

This commit is contained in:
Shylie
2024-05-29 07:16:01 -04:00
parent ae2052f8a9
commit cf9ab6c0a1
3 changed files with 25 additions and 8 deletions

View File

@@ -2,11 +2,16 @@
#include <test-common.h>
#include <iostream>
namespace
{
void init()
{
glerminal_load_sprites_file("resources/image.png");
if (!glerminal_load_sprites_file("resources/image.png"))
{
std::cout << "Failed to load texture" << std::endl;
}
for (int i = 0; i < GRID_HEIGHT; i++)
{