Test testing code (again...)
All checks were successful
Make PNG / build-app (push) Successful in 21s
All checks were successful
Make PNG / build-app (push) Successful in 21s
This commit is contained in:
parent
60117c5cf9
commit
be6a31043a
@ -24,8 +24,8 @@ jobs:
|
|||||||
- name: Build previous
|
- name: Build previous
|
||||||
run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build
|
run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build
|
||||||
- name: Generate PNG file for curr
|
- name: Generate PNG file for curr
|
||||||
run: cd curr/build/tests && xvfb-run -a ./test-basic
|
run: cd curr/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
|
||||||
- name: Generate PNG file for prev
|
- name: Generate PNG file for prev
|
||||||
run: cd prev/build/tests && xvfb-run -a ./test-basic
|
run: cd prev/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
|
||||||
- name: Compare PNG files
|
- name: Compare PNG files
|
||||||
run: diff curr/build/tests/image.png prev/build/tests/image.png
|
run: diff curr/build/tests/image.png prev/build/tests/image.png
|
||||||
|
@ -18,8 +18,7 @@ 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
|
||||||
|
|
||||||
// commented out as a test
|
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
||||||
//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