Commit Graph

1827 Commits

Author SHA1 Message Date
Ozkan Sezer a1ae4bdc7c revert r1647
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1649 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-12 07:35:22 +00:00
Ozkan Sezer c2dbafef4b lodepng.c: minor update (cf. mainstream PR/119)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1648 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 22:14:22 +00:00
Ozkan Sezer 626280708b oslibs: rebuilt libflac decoder after applying a fix from mainstream
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1647 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 11:38:59 +00:00
Ozkan Sezer 8ebb9dc117 lodepng.c (lodepng_zlib_compress): Fix alloc fail check.
From https://github.com/lvandeve/lodepng/pull/118

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1646 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 09:37:06 +00:00
Ozkan Sezer da43c6a57b r_brush.c (AllocBlock): add a FIXME note about a valgrind warning.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1645 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 09:35:19 +00:00
Ozkan Sezer 82289e3de7 SDL2: rebuilt from latest SDL2-hg-r13229.
fixes a missing export in previous build.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1644 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-05 07:01:09 +00:00
Ozkan Sezer 027ed8735c SDL2: rebuilt from latest SDL2-hg-r13226 to test upcoming v2.0.12.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1643 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-02 07:20:12 +00:00
Ozkan Sezer 0eccebd694 rebuilt SDL-1.2 from latest source.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1642 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-02 07:14:02 +00:00
Ozkan Sezer abe7868de1 oslibs: rebuilt FLAC and mpg123 decoders.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1641 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-02 07:11:17 +00:00
Ozkan Sezer d3294e3001 update docs
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1640 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-20 18:41:06 +00:00
Ozkan Sezer 21915e956c snd_sdl.c: pass NULL as the 'obtained' spec to SDL_OpenAudio():
this way, SDL will convert to hardware format for us if needed.
most of the times we do get what we want. however, for example,
the WASAPI backend of SDL2 returns AUDIO_F32LSB as the obtained
format (which is not an SDL thing but a WASAPI thing) and we do
not support that. the SDL2.dll we ship with has WASAPI disabled,
but if the user replaces our dll with a one with WASAPI enabled
(official libsdl.org build or his own build) then we refuse the
obtained AUDIO_F32LSB format and run without sound.  after this
patch, such a thing is transparent to us.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1639 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-20 18:40:00 +00:00
Ozkan Sezer e04c0b49af remove Steve's name from quit menu message too, per his request.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1638 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-18 09:39:00 +00:00
Ozkan Sezer 196f89a239 GL_BuildLightmaps: minor warning fixes. more accurate developer warning.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1637 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-18 09:17:24 +00:00
Ozkan Sezer 511d4bb908 remove Steve's name from various doco/contacts as per his request.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1636 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-17 11:10:18 +00:00
Ozkan Sezer 61a6d27a01 oslibs, codecs: rebuilt flac decoder after applying fixes from upstream
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1635 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-16 11:10:28 +00:00
Ozkan Sezer 57ad299dfa r_brush.c (AllocBlock): add casts to malloc and realloc
( in case someone wants to build using C++ compilers. )

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1634 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-16 11:00:38 +00:00
Ozkan Sezer d130c42172 SDL2: rebuilt from latest SDL2-hg-r13074 to test upcoming v2.0.11.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1633 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 17:20:28 +00:00
Ozkan Sezer ee57dddb37 oslibs: rebuilt SDL-1.2 from latest mainstream source.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1632 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 17:14:01 +00:00
Ozkan Sezer 13d8e8f704 bump version to 0.93.2, update changelog.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1631 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 12:36:59 +00:00
Ozkan Sezer 39b4fccb44 move LMBLOCK_WIDTH/HEIGHT from bspfile.h to glquake.h
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1630 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 12:34:12 +00:00
Ozkan Sezer 0a6a5c62c8 minor simplification
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1629 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 12:33:02 +00:00
Eric Wasylishen e041b958c7 r_brush.c: dynamically allocate lightmaps, from QuakeSpasm-Spike
This raises LMBLOCK_WIDTH/HEIGHT from 128 to 256 which should
be supported everywhere and decrease draw calls

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1628 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 06:49:35 +00:00
Eric Wasylishen f2930ef460 r_brush.c: rename BLOCK_WIDTH/HEIGHT to LMBLOCK_WIDTH/HEIGHT to match QSS
(no other changes)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1627 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 06:49:27 +00:00
Eric Wasylishen 12e781ba46 raise MAXALIASTRIS from 2048 to 4096 so SlayerTest mdl's load.
TODO: look at switching to Spike's mdl code from QSS
TODO: add "exceeds standard limit" warnings

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1626 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 04:06:57 +00:00
Eric Wasylishen 6924a94fa6 Mod_LoadAliasModel: don't corrupt memory if MAXALIASTRIS exceeded
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1625 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 04:06:55 +00:00
Eric Wasylishen 429b29a669 Sky_NewMap: avoid stack buffer underflow on the "remove trailing spaces"
line that happened if a map had an empty string worldspawn key,
detected by ASan on macOS with demo_map.bsp from SlayerTest.

Also prevent the strcpy's from overflowing the buffers in case of long
keys.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1624 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-09-12 04:06:54 +00:00
Ozkan Sezer 0e6c4f27cc update lodepng to 20190824 version from mainstream.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1623 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-28 00:10:02 +00:00
Ozkan Sezer e4eae98ab4 watcom makefiles: make wlink quiet
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1622 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-28 00:01:04 +00:00
Ozkan Sezer c762d597fc SDL2: rebuilt from latest SDL2-hg-r13033 to test upcoming v2.0.11.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1621 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-24 09:21:07 +00:00
Ozkan Sezer 0351068457 oslibs, SDL-1.2: rebuilt from latest code (1.2.16).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1620 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-23 08:47:40 +00:00
Ozkan Sezer 92758e8591 update lodepng to 20190814 version from mainstream.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1619 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-15 12:01:54 +00:00
Ozkan Sezer 0e6d131547 oslibs, SDL-1.2: rebuilt from latest code (1.2.16).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1618 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-03 11:47:14 +00:00
Ozkan Sezer a1390f2529 oslibs, SDL-1.2: rebuilt from latest code for windows.
fixes the SetVideoMode bug in previous build.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1617 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-01 22:25:46 +00:00
Ozkan Sezer eca65d118a SDL2: rebuilt for Windows from SDL2-hg-r12978 to test upcoming v2.0.11.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1616 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-01 18:56:54 +00:00
Ozkan Sezer 9c34c2dec9 oslibs, SDL-1.2: rebuilt from latest code.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1615 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-08-01 18:38:51 +00:00
Ozkan Sezer 4a8b58b300 oslibs, codecs: updated vorbis, xmp, and mikmod builds.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1614 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-29 08:42:03 +00:00
Ozkan Sezer 43ba38a7bb oslibs, codecs: rebuild libmpg123 with updates from mainstream.
git: https://github.com/sezero/mpg123.git 1.22.x-sezero branch

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1613 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-28 01:21:05 +00:00
Ozkan Sezer 9fc3408391 snd_mp3.c: better skipping of tags:
( also see: https://bugzilla.libsdl.org/show_bug.cgi?id=4728 )

Instead of doing it 'as-we-go' every time, skip the tags at file-open
time only once.

The former implementation had the chance of not having the full tag in
the frame, that includes a possibility of even not having the complete
tag magic in the frame leading to not identifying a tag.

The new implementation skips all the tags at file-start and file-end,
and does that only once.

Also added are detection and skipping of extended ID3v1 and APEv1 tags.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1612 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-23 14:11:30 +00:00
Ozkan Sezer ee831b2b48 lodepng: sync with mainstream, merged up to latest commit f6155a420604.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1611 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-15 09:20:05 +00:00
Ozkan Sezer 62f7829739 SDL2: rebuilt for Mac OS X from SDL2-hg-r12927 to test upcoming v2.0.10.
More builds for both osx and win will likely follow, because there still
are some critical issues open in SDL bugzilla.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1610 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-04 11:21:50 +00:00
Ozkan Sezer 0e797c0518 SDL2: rebuilt for Windows from SDL2-hg-r12919 to test upcoming v2.0.10.
A Mac OS X build will follow later. And more builds will likely follow
because there still are some critical issues open in SDL bugzilla.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1609 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-07-03 07:39:47 +00:00
Eric Wasylishen 68faa57c6d CalcSurfaceExtents: adjust bogus initial "max" texture coord to match the
magnitude of the "min" one. It was possible to erroneously cause a
"bad surface extents" error with face around +/- 100K units from the origin,
since "max" was initalized to -99999.

TODO: These should probably both be changed to FLT_MAX/-FLT_MAX.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1608 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-03-18 07:22:54 +00:00
Eric Wasylishen c04be89a90 PR_UglyValueString: increase line[512] to 1024, use q_snprintf
Fixes writing past end of buffer (crashes on some OS'es) when saving xmasjam2018_qmaster1 


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1607 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-12-30 05:24:36 +00:00
Ozkan Sezer 2288b9c757 rebuilt SDL2 for Win from mainstream SDL repo, hg-12425:266c5fbe0bbd
rebuilt SDL2 for OSX from mainstream SDL repo, hg-12428:f5d2abe5af7f


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1606 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-22 14:57:24 +00:00
Ozkan Sezer 06b09262bf oslibs: updated opus decoder builds
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1605 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-13 19:21:27 +00:00
Ozkan Sezer af9515275b SDL2: rebuilt for OSX after applying patch for SDL bug #4368
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1604 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-11 08:34:51 +00:00
Ozkan Sezer 7e0aae37c6 oslibs: updated libvorbis and libxmp builds.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1603 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-11 08:14:52 +00:00
Ozkan Sezer 57e6d507ec SDL header updates from mainstream. (fix for SDL bug #4362.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1602 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-07 08:00:22 +00:00
Ozkan Sezer 455d7dd212 oslibs, codecs: rebuild libmpg123.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1601 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-03 11:50:38 +00:00
Ozkan Sezer 74810cd40e handle ssize_t issues with MSVC better
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1600 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-11-03 09:50:53 +00:00