You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add check to clang 6.0 compiler bug workaround
Extending on b68222e4e7 to ensure that it still
has the exact same behaviour as the previous code, as discussed with @hpvb.
This commit is contained in:
@@ -348,7 +348,9 @@ public:
|
|||||||
|
|
||||||
//use the smallest depth
|
//use the smallest depth
|
||||||
|
|
||||||
|
if (min_B < 0.0) { // could be +0.0, we don't want it to become -0.0
|
||||||
min_B = -min_B;
|
min_B = -min_B;
|
||||||
|
}
|
||||||
|
|
||||||
if (max_B < min_B) {
|
if (max_B < min_B) {
|
||||||
if (max_B < best_depth) {
|
if (max_B < best_depth) {
|
||||||
|
|||||||
Reference in New Issue
Block a user