From 23327a4d7ab77a5ec2eab511e1a36fd55da268c3 Mon Sep 17 00:00:00 2001 From: Steve Hollasch Date: Sat, 9 May 2020 11:56:08 -0700 Subject: [PATCH] Change text from qsort to std::sort Resolves #490 --- CHANGELOG.md | 1 + books/RayTracingTheNextWeek.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1e8e63..dd556ff1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Change Log -- Ray Tracing in One Weekend - Fix: Corrected for-loop indices (they differed from the version in book 1) in `random_scene()`. - Fix: Introduce "Texture Coordinates for Spheres" in Chapter 4 to support (u,v) coordinates in `hit_record` (#496) + - Fix: Small correction: we now use `std::sort` instead of `qsort` (#490) - Change: Refactored `random_scene()`. More named intermediate values, sync'ed with version in _In One Weekend_ and with source. Added highlight for update from last version in book 1. (#489) - Change: The C++ `` version of `random_double()` no longer depends on `` diff --git a/books/RayTracingTheNextWeek.html b/books/RayTracingTheNextWeek.html index 27b9a74e..f0624151 100644 --- a/books/RayTracingTheNextWeek.html +++ b/books/RayTracingTheNextWeek.html @@ -810,7 +810,7 @@ list along one axis. I’ll go for simplicity: 1. randomly choose an axis - 2. sort the primitives using library qsort + 2. sort the primitives (`using std::sort`) 3. put half in each subtree