Skip to content

Version 1.2.2

Choose a tag to compare

@LandonTheCoder LandonTheCoder released this 18 Oct 00:52
· 50 commits to main since this release
v1.2.2
b5e6374

The primary purpose of this update is to fix a use-after-free. When bitmap was returned from a function, it would have the pixel data deallocated, even though a dangling pointer was copied to a newly-allocated object returned.

Other things this release does:

  • Implement preparations for multithreading, such as a command-line argument
  • A bugfix for parsing a type given in the form -tpng: I had an off-by-one error which would cause it to parse incorrectly.
  • Implement a fallback if variable-length arrays aren't available (which is a GCC/Clang extension in C++, optional standard in C11, and the Microsoft Visual C++ compiler notably omits VLA support for both languages). It uses alloca() which creates an array on the stack. This should help let it compile on Windows.
  • Windows bugfix: implement a manifest to make the raytracer run in UTF-8 mode by default. This simplifies programming for me.
  • Implement code to retrieve command-line arguments from GetCommandLineW() on Windows. This is used as a fallback if the program does not start in UTF-8 mode, so that non-ASCII filenames should still work.