diff --git a/.gitea/workflows/make_png.yaml b/.gitea/workflows/make_png.yaml index f9b0959..761b1ce 100644 --- a/.gitea/workflows/make_png.yaml +++ b/.gitea/workflows/make_png.yaml @@ -12,12 +12,14 @@ jobs: with: path: curr submodules: recursive + lfs: true - name: Checkout previous uses: actions/checkout@v4 with: path: prev fetch-depth: 2 submodules: recursive + lfs: true - run: cd prev && git checkout HEAD^ - name: Build current run: cmake -S curr -B curr/build -DGLERMINAL_TEST=ON && cmake --build curr/build diff --git a/source/glerminal.cpp b/source/glerminal.cpp index 5ad4892..a4d2fd9 100644 --- a/source/glerminal.cpp +++ b/source/glerminal.cpp @@ -825,11 +825,7 @@ int glerminal_load_sprites_file(const char* filename) stbi_uc* const buffer = stbi_load(filename, &w, &h, nullptr, 4); // verify atlas size is a multiple of CELL_SIZE in each dimension - if (!buffer) - { - std::cout << stbi_failure_reason() << std::endl; - } - else if (w % glerminal::CELL_SIZE == 0 && h % glerminal::CELL_SIZE == 0) + if (w % glerminal::CELL_SIZE == 0 && h % glerminal::CELL_SIZE == 0) { GLERMINAL_G->load_atlas(w / glerminal::CELL_SIZE, h / glerminal::CELL_SIZE, reinterpret_cast(buffer));