| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
| |
If a newly started thread immediately exits then m_running would
immediately be set to false again and the caller would be stuck
waiting for m_running to become true forever.
Since a mutex for synchronizing startup already exists we can
simply move the while loop into it.
see also: #5134 which introduced m_start_finished_mutex
|
| |
|
| |
|
|
|
| |
Fixes #12245
|
| |
|
|
|
|
| |
also make them work with the RelWithDebInfo build type
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit introduces mt_localtime() in src/gettime.h, a wrapper
around the OS-specific thread-safe versions of localtime()
(resp. localtime_s on Windows and localtime_r in other systems).
Per the Open Group recommendation,
«portable applications should call tzset() explicitly before using
ctime_r() or localtime_r() because setting timezone information is
optional for those functions», so we also do a one-shot
call of tzset() (_tzset() on Windows to avoid warning C4996).
The function is used to replace the localtime() calls in
getTimestamp() and makeScreenshot().
(The only reminaing call to localtime() in the tree now is the one in
the local copy of the Lua source code.)
|
|
|
| |
Keep code and use version check instead, for backwards compatibility
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
As reported in #12197, b0b9732359d43325c8bd820abeb8417353365a0c
introduces a regression in worldalign textures.
The specific change that seems to be responsible for this issue is the
change in order between the computation of the cuboid texture
coordinates and the box edge correction.
Fix #12197 by moving the box edge correction back to before the cuboid
texture coordinates, as it used to be.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since b2eb44afc50976dc0954c868977b5829f3ff8a19, a texture defined as
`[combine:16x512:0,0=some_file.png;etc`
will not be sent correctly from a 5.5 server to a 5.4 client due to the
overeager detection of unsupported base modifier `[` introducing a
spurious `blank.png^` before the modifier.
Fix this by whitelisting which base modifiers can be passed through
unchanged to the client, and prefix `blank.png` for the others
(which at the moment is just [png:, but the list may grow larger
as new base modifiers are added.)
|
| |
|
|
|
|
|
|
|
| |
Stop scaling images to POT immediately when loaded. The 'combine'
modifier hardcodes X and Y coordinates, and so behaves incorrectly
if applied to a scaled image. Images emitted by generateImage()
are already scaled to POT before being used as a texture, so
nothing should break.
|
| |
|
|
|
|
|
|
|
|
| |
* Move shadow position calculation to vertex shaders
* Animate entire scene before rendering shadows to prevent lagging of shadows
* Remove unnecessary use of PolygonOffsetFactor
* Apply normal offset to both nodes and objects
* Rename getPerspectiveFactor -> applyPerspectiveDistortion
* Remove perspective distortion from fragment shaders
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Only ASCII spaces have to be handles specially, and leading spaces are
also disallowed.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This matches the XDG base directory spec.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes violation of Liskov substitution principle
Fixes #12144
|
|
|
| |
Co-authored-by: sfan5 <sfan5@live.de>
|
|
|
|
| |
closes #12165
|
|
|
|
| |
Use BSP tree to order transparent triangles
https://en.wikipedia.org/wiki/Binary_space_partitioning
|
| |
|
| |
|
|
|
|
|
| |
* Pass perspective distortion parameters as uniforms
* Set all perspective bias parameters via ShadowRenderer
* Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
|
| |
|
| |
|
| |
|
|
|
| |
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
|
|
|
|
| |
EmergeManager keeps a copy of the BiomeGen that it creates, but
never deletes it.
|
| |
|
|
|
| |
Initialize the values properly
|
|
|
|
|
| |
IrrlichtMt now provides this for us (see last commit)
fixes #12041
|