Upload test images as artifacts

This commit is contained in:
Shylie
2024-05-28 13:23:49 -04:00
parent be6a31043a
commit 526924d02a
2 changed files with 14 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
namespace
{
unsigned char pixels[1280 * 800 * 3];
unsigned char pixels[(GRID_WIDTH * CELL_SCALE * 8) * (GRID_HEIGHT * CELL_SCALE * 8) * 3];
}
void glerminal_test_save_image()
@@ -21,5 +21,5 @@ void glerminal_test_save_image()
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
stbi_flip_vertically_on_write(true);
stbi_write_png("image.png", GRID_WIDTH * CELL_SCALE * 8, GRID_HEIGHT * CELL_SCALE * 8, 3, pixels, 1280 * 3);
stbi_write_png("image.png", GRID_WIDTH * CELL_SCALE * 8, GRID_HEIGHT * CELL_SCALE * 8, 3, pixels, GRID_WIDTH * CELL_SCALE * 8 * 3);
}