godot/drivers/gles3
Hein-Pieter van Braam b696beea65 Correct hash behavior for floating point numbers
This fixes HashMap where a key or part of a key is a floating point
number. To fix this the following has been done:

* HashMap now takes an extra template argument Comparator. This class
gets used to compare keys. The default Comperator now works correctly
for common types and floating point numbets.

* Variant implements ::hash_compare() now. This function implements
nan-safe comparison for all types with components that contain floating
point numbers.

* Variant now has a VariantComparator which uses Variant::hash_compare()
safely compare floating point components of variant's types.

* The hash functions for floating point numbers will now normalize NaN
values so that all floating point numbers that are NaN hash to the same
value.

C++ module writers that want to use HashMap internally in their modules
can now also safeguard against this crash by defining their on
Comperator class that safely compares their types.

GDScript users, or writers of modules that don't use HashMap internally
in their modules don't need to do anything.

This fixes #7354 and fixes #6947.
2017-02-16 18:44:29 +01:00
..
shaders a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
rasterizer_canvas_gles3.cpp -begin of export work, not done yet 2017-02-15 08:30:32 -03:00
rasterizer_canvas_gles3.h Type renames: 2017-01-11 00:52:51 -03:00
rasterizer_gles3.cpp a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
rasterizer_gles3.h Everything returning to normal in 3D, still a long way to go 2016-10-19 11:14:41 -03:00
rasterizer_scene_gles3.cpp a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
rasterizer_scene_gles3.h basic contact shadows implementation, will most likely need some polishing 2017-02-08 07:35:14 -03:00
rasterizer_storage_gles3.cpp a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
rasterizer_storage_gles3.h a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
SCsub Begining of GLES3 renderer: 2016-10-03 21:35:16 +02:00
shader_compiler_gles3.cpp Several bugfixes, improving the import workflow 2017-02-06 00:38:39 -03:00
shader_compiler_gles3.h Subsurface scattering material param is now working! 2016-12-02 22:23:16 -03:00
shader_gles3.cpp Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
shader_gles3.h Correct hash behavior for floating point numbers 2017-02-16 18:44:29 +01:00