CUGL Bug Patches
CUGL is continually a work in progress. Every time we work on a lecture we either find some issue, or some way in which the engine can be improved. While we try to feature lock the engine at the start of the semester, that is not always possible.
This page is where we will post the mid-semester patches. For each file you
should simply copy it to the correct directory. Source code files replace the
appropriate file in cugl/source. Header files replace the appropriate file
in cugl/include/cugl.
In addition, this semester we will always update the download link to CUGL after a patch. So you can get all the benefits of a patch simply by redownloading CUGL.
Patch 4.0.1 (February 4, 2026) Do Androids Dream of Electric Bugs?
In preparing the third individual assignment, we discovered several problems with the Android build system. These include
- Improper detection of SIMD support when integration WEBP
- Improper detection of OpenSSL when building the network package
Fixing these required extensive changes to the template folder, so there are
no individual files to download. Instead you should just redownload the latest
version of CUGL from the engine page.
Patch 4.0.2 (February 8, 2026) That is Not Physically Possible
This patch involves some adjustments to the graphics pipeline because of errors that appeared in the physics demos on the samples page.
- cugl/source/graphics/opengl/CUGLOpaques.h: Fixed a bug with depth sorting
- cugl/source/scene3/CUObjBatch.cpp: Fixed a color blending bug with MTL textures
- cugl/source/physics2/CUCapsuleObstacle.cpp: Fixed the debug mesh alignment As part of this patch, we attempted to address the issues with Windows resizing that appeared in the second design lab. However, in our investigation we discovered that this is the result of a very non-standard design choice in Windows that will require us to refactor the graphics pipeline. As a result, real-time resizing is no longer supported in CUGL 4.