Commit graph

17422 commits

Author SHA1 Message Date
alexey.lysiuk
f2760303e4 - fixed compilation of Cocoa backend
src/posix/cocoa/i_main.mm:225:12: error: Objective-C declarations may only appear in global scope
src/posix/cocoa/i_main.mm:247:17: error: Objective-C declarations may only appear in global scope
src/posix/cocoa/i_main.mm:545:2: error: expected '}'
2019-06-11 07:35:12 -04:00
Christoph Oelckers
54c4c49d5a - on second thought, better call M_ClearMenus instead of calling Destroy directly. 2019-06-11 07:35:04 -04:00
Christoph Oelckers
c6f290dcf8 - fixed: DeinitMenus must explicitly destroy the active menu before taking down the descriptors.
Otherwise the menu will only be collected by the garbage collector and no longer find all relevant data.
2019-06-11 07:34:48 -04:00
Christoph Oelckers
ba09f553d4 - consolidated the 3 atterm implementations.
Each platform had its own copy. Why?
2019-06-11 07:34:40 -04:00
alexey.lysiuk
6b114207dc - fixed compilation of FXAA shader by macOS OpenGL
Compile Shader 'shaders/glsl/fxaa.fp':
ERROR: 0:250: '' : syntax error: incorrect preprocessor directive
ERROR: 0:250: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:265: '' : syntax error: incorrect preprocessor directive
ERROR: 0:265: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:266: '' :   Macro Redefined lumaM
ERROR: 0:301: '' : syntax error: incorrect preprocessor directive
ERROR: 0:301: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:599: '' : syntax error: incorrect preprocessor directive
ERROR: 0:599: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline

https://forum.zdoom.org/viewtopic.php?t=65003
2019-06-11 07:34:32 -04:00
Magnus Norddahl
67c45a9e96 - store the vulkan framebuffer with the image (this ensures the framebuffer object is destroyed along with the image) 2019-06-11 07:34:19 -04:00
Magnus Norddahl
505d1f0172 - delay postprocess texture destruction until the end of the frame 2019-06-11 07:33:58 -04:00
Magnus Norddahl
3b868dfb4d - fix wipe screen when using -loadgame 2019-06-11 07:33:53 -04:00
Christoph Oelckers
1e3c3de7f4 - gitignore update. 2019-06-11 07:33:40 -04:00
alexey.lysiuk
b69260c368 - fixed crash on loading map in Hexen format without any nodes 2019-06-11 07:33:23 -04:00
alexey.lysiuk
ca90516238 - removed explicit self null tests from dynarray native wrappers
They are useless since d3e6ed3c9b in which generation of implicit self null pointer check was added to JIT
2019-06-11 07:33:16 -04:00
Gutawer
360d97657d - added a linear transformation system to Shape2D so that things like rotations and scales can be changed without having to clear and push a large amount of data 2019-06-11 07:33:05 -04:00
Rachael Alexanderson
d3e04a94c0 - version 4.1.3 2019-06-08 07:56:19 -04:00
Rachael Alexanderson
ba89b9d383 - language update 2019-06-08 07:55:49 -04:00
Gutawer
d575f9890a - cleaned up SDL mouse event handling
* Right/middle clicking no longer cancels out the mouse motion events
* The events for the side mouse buttons (EV_GUI_BackButtonDown/Up, EV_GUI_FwdButtonDown/Up) were never fired
* The EV_GUI_WheelRight/Left events were never fired
* The key bindings for mouse buttons above 3 (from 4-8) were broken - pressing MOUSE4 would bind to MOUSE6, for example
2019-06-08 06:43:18 -04:00
alexey.lysiuk
5df12221bb - report implicitly initialized variable in code generator once
Vectors are no longer reported several times
Previously, warnings were issued per every register
2019-06-08 06:02:07 -04:00
alexey.lysiuk
c731bb4758 - fixed access to wrong event data in SDL backend
Wrong button state event data were read on mouse motion

https://forum.zdoom.org/viewtopic.php?t=64950
2019-06-08 06:01:59 -04:00
Christoph Oelckers
a3ae9c436b - Language update for Chex Quest 3 for Polish. 2019-06-07 15:29:59 -04:00
alexey.lysiuk
60d4c5462f - added implicit initialization of reused register variables in ZScript 2019-06-07 12:14:22 -04:00
alexey.lysiuk
366d39c22c - added null check for self pointer before calling a native function
With JIT enabled, an implicit test for null self pointer is added to generated code
This has no effect without JIT as VM verifies a pointer before calling a native method

https://forum.zdoom.org/viewtopic.php?t=64961
2019-06-07 11:04:35 -04:00
alexey.lysiuk
32556f62d7 - removed erroneous assignment of dialog reply
https://forum.zdoom.org/viewtopic.php?t=64943
2019-06-07 10:45:11 -04:00
Rachael Alexanderson
1416171043 - language update 2019-06-07 10:40:13 -04:00
alexey.lysiuk
1b1a85a283 - check for presence of fonts in message box menu
https://forum.zdoom.org/viewtopic.php?t=64958
2019-06-07 10:40:08 -04:00
Magnus Norddahl
b818beca4b - fix loadgame crash 2019-06-07 10:40:02 -04:00
alexey.lysiuk
e87cdedefc - fixed hires texture lookup in Doomsday style .pk3
IWAD wasn't detected properly, and wrong texture can be picked as a hires replacement (e.g., SLADRIP1 from Ultimate Doom instead of TNT)

https://forum.zdoom.org/viewtopic.php?t=64915
2019-06-07 10:39:58 -04:00
Christoph Oelckers
75507ce564 - fixed the write barriers for the HUD message linked list.
To ensure that no broken relations occur, any change in the list must be handled by a write barrier, not just the single message that gets added.
2019-06-07 10:39:42 -04:00
Magnus Norddahl
6a4e60ef71 - FXAA_DISCARD should never be enabled. It only works when the output framebuffer is the same as the original. 2019-06-07 10:39:33 -04:00
alexey.lysiuk
ec172b50e5 - simplified AppVeyor configuration
Visual Studio 2015 and 2019, Release only, no more WinXP toolset, reorder targets by importance
Visual Studio 2017 builds are now verified by Travis only
2019-06-07 10:39:27 -04:00
Blue Shadow
6e7764572d - fixed PlaySpawnSound call in A_ThrowGrenade 2019-06-07 10:39:19 -04:00
Chronos Ouroboros
4161ef7646 Really fixed arrays of dynarrays this time. 2019-06-07 10:39:13 -04:00
William Breathitt Gray
08cda06a11 Cephes code is released under BSD license
The Cephes Mathematical Library author Steve Moshier has released the
Cephes Mathematical Library under the BSD license. This patch patch
replaces the cephes license with the BSD license for all Cephes
Mathematical Library code.

See also: https://bugs.gentoo.org/687276
See also: https://lists.debian.org/debian-legal/2004/12/msg00295.html
See also: https://github.com/deepmind/torch-cephes/blob/master/LICENSE.txt
See also: https://github.com/nearform/node-cephes/blob/master/LICENSE
2019-06-07 10:39:05 -04:00
alexey.lysiuk
63b44ec5d4 - limited disabling of FXAA discard to Vulkan on AMD hardware 2019-06-07 10:38:58 -04:00
alexey.lysiuk
3f90620940 - implemented GPU vendor string assingment in Vulkan backend 2019-06-07 10:38:51 -04:00
alexey.lysiuk
9aed388242 - disabled discard in FXAA shader with Vulkan backend
Discard caused graphical corruptions on AMD hardware with Vulkan backend enabled

https://forum.zdoom.org/viewtopic.php?t=64230
2019-06-07 10:38:46 -04:00
Rachael Alexanderson
405ac161c4 - added a third state for cl_blockcheats. ==2 now blocks them silently. 2019-06-07 10:38:41 -04:00
Alexander
fc701c8d39 added native double round(double) function 2019-06-07 10:38:24 -04:00
alexey.lysiuk
d5cb48b476 - reset internal console state on clear CCMD
'last line needs update' flag cannot be set when console is empty as there are no lines at all in this case

https://forum.zdoom.org/viewtopic.php?t=64909
2019-06-07 10:38:18 -04:00
Edoardo Prezioso
d0ead3e195 - Fixed uninitialized variable in case GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS does not exist.
Old graphics, like mine (Intel Sandybridge Mobile, GL 3.0 Mesa) do not support this, therefore most of the time RFL_SHADER_STORAGE_BUFFER wasn't unset (I found no consequence of this on my machine, but better safe than sorry).

Found out by Valgrind.
2019-06-07 10:38:12 -04:00
Edoardo Prezioso
5c1fa3d632 - Fixed a buffer overflow with Timidity++ when playing Sigil e5m5 music.
See https://forum.zdoom.org/viewtopic.php?f=2&t=64910 .
2019-06-07 10:38:03 -04:00
Kevin Caccamo
0d19156372 Fix OBJ face normal direction
https://forum.zdoom.org/viewtopic.php?f=2&t=64740
2019-06-07 10:37:56 -04:00
David Carlier
20708aed5b Inclusion of check symbol cmake's module. 2019-06-07 10:37:51 -04:00
Danilo Spinella
fb74832a0c Check for execinfo.h and add libexecinfo if needed
Some systems (e.g. musl) do not have execinfo.h header.
Check if libexecinfo (library that provides execinfo.h header
and its functions) is installed in the system, and add
its linker flag if needed.
2019-06-07 10:37:46 -04:00
Danilo Spinella
d34b355065 Add support for musl-fts library 2019-06-07 10:37:41 -04:00
Kyle Evans
d955c298b6 Fix clang/32-bit build
Rendering bits got restructured and the SSE_MATTERS paths were not updated
to reflect that. A 32-bit build with clang subsequently complaints as the
files in question are not compiled with -mmmx.
2019-06-07 10:37:19 -04:00
Christoph Oelckers
1818b5d9a0 - fixed fillSimplePoly for indexed data.
On OpenGL this merely caused some visual glitches on the cheat automap - but the bad data in the buffer can make Vulkan abort entirely.
2019-06-07 10:37:12 -04:00
alexey.lysiuk
d050627cb0 - fixed crash when loading a saved game with unknown class
During serialization, when map shutdown because of unknown class stored inside saved game may occur, level member is not assigned yet to already spawned thinkers
2019-06-07 10:37:06 -04:00
alexey.lysiuk
d94786a132 - adjusted condition for ZScript global variable deprecation warning
The message is always printed for any use of deprecated global variable
If such variable is accessed inside a deprecated function from a core script lump, the message is printed only when verbosity level is set to highest

https://forum.zdoom.org/viewtopic.php?t=64830
2019-06-07 10:37:00 -04:00
alexey.lysiuk
ae94aa029c - fixed missing deprecation warnings for ZScript global variables
https://forum.zdoom.org/viewtopic.php?t=64830
2019-06-07 10:36:55 -04:00
alexey.lysiuk
1f69013de8 - fixed: version wasn't set for ZScript global variables
https://forum.zdoom.org/viewtopic.php?t=64830
2019-06-07 10:36:49 -04:00
alexey.lysiuk
3fff8e1c3a - fixed code generation for ternary operator with vector result types
https://forum.zdoom.org/viewtopic.php?t=64831
2019-06-07 10:36:37 -04:00