You've already forked godot
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user