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 3.0.1 (January 26, 2025) It Is Always Something
In adapting the demos to the new CUGL 3.0 API, we discovered some last minute graphical artifacts.
- cugl/source/graphics/CUTextLayout.cpp: Fixed formatting for text ending in a space.
- cugl/source/scene2/CULabel.cpp: Fixed a problem with label background color.
- cugl/source/scene2/CUSlider.cpp: Fixed a problem with sliders and layout mangagers.
- cugl/templates/cmake/flatpak/build.sh: Fixed a problem with the Flatpak uninstaller.
Patch 3.0.2 (February 6, 2025) That is Physically Impossible
In updating the phyiscs demos, we discovered some important bugs that needed to be fixed.
- cugl/include/cugl/core/assets/CUGenericLoader.h: Fixed a bug with reloading an unloaded asset.
- cugl/include/cugl/physics2/CUObstacleWorld.h: Redesigned
clear
to make it deterministic. - cugl/source/physics2/CUObstacleWorld.cpp: Redesigned
clear
to make it deterministic.
Patch 3.0.3 (April 16, 2025) Failure to Launch
As people are readying their Test-Flight builds, we discoverd some configuration issues in XCode that made it impossible to build an iOS archive. This has now been fixed, but you need to download the entire CUGL project to get the changes.
In addition, we found some race conditions in the audio code that needed to be addressed.
- cugl/include/cugl/audio/CUAudioEngine.h: Fixed a race condition caused by clearing and playing.
- cugl/audio/CUAudioEngine.cpp: Fixed a race condition caused by clearing and playing.
- cugl/include/cugl/audio/graph/CUAudioScheduler.h: Fixed a race condition caused by clearing and playing.
- cugl/audio/graph/CUAudioScheduler.cpp: Fixed a race condition caused by clearing and playing.