1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

CPU lightmapper fixes.

- Fix Embree runtime when using MinGW (patch by @RandomShaper).
- Fix baking of lightmaps on GridMaps.
- Fix some GLSL errors.
- Fix overflow in the number of shader variants (GLES2).
This commit is contained in:
JFonS
2021-01-11 20:20:22 +01:00
parent d909592fc5
commit b1ca82c43a
30 changed files with 217 additions and 57 deletions

View File

@@ -361,7 +361,15 @@ namespace embree
if ((loopIndex % LOOP_YIELD_THRESHOLD) == 0)
yield();
else
// -- GODOT start --
#if !defined(__MINGW32__)
// -- GODOT end --
_mm_pause();
// -- GODOT start --
#else
usleep(1);
#endif
// -- GODOT end --
loopIndex++;
#else
yield();