mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2024-11-21 16:40:04 +00:00
Test testing code
This commit is contained in:
parent
3d635b67f5
commit
60117c5cf9
@ -18,7 +18,8 @@ void glerminal_test_save_image()
|
|||||||
// GL_TEXTURE_2D is not rebound after setting up screen framebuffer
|
// GL_TEXTURE_2D is not rebound after setting up screen framebuffer
|
||||||
// This code will break if this behavior changes
|
// This code will break if this behavior changes
|
||||||
|
|
||||||
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
// commented out as a test
|
||||||
|
//glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
||||||
|
|
||||||
stbi_flip_vertically_on_write(true);
|
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, 1280 * 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user