Thilo Schulz
32bd0ab5bd
Add length checking to prevent malicious mdr files to overflow buffers.
2008-04-08 18:56:03 +00:00
Thilo Schulz
cafbb38d85
Handle detail textures correctly when r_detailedTextures is set to 0.
2008-04-06 16:29:22 +00:00
Thilo Schulz
0811b1c99c
Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too.
2008-04-06 02:24:07 +00:00
Thilo Schulz
5c1167557a
Make sure that one broken shader file cannot crash the game / make the other shaders unusable.
2008-04-06 02:13:43 +00:00
Thilo Schulz
ccffb85185
This hack probably is not needed anymore.
2008-03-27 02:42:17 +00:00
Ludwig Nussel
c0f7c8d9cd
png fixes by Joerg Dietrich
2008-02-15 08:37:44 +00:00
Ludwig Nussel
d91c5c9282
make the pcx decode actually work
2008-02-14 13:30:32 +00:00
Tim Angus
a5b51a95d7
* Consolidate tr_image_*.h headers into tr_local.h to more closely follow the
...
Q3 coding style
* Prefix image loaders with R_ now they're non-static
2008-02-14 13:16:13 +00:00
Ludwig Nussel
84f32478b9
remove code duplicated from libjpeg and make internal functions static
2008-02-14 11:13:51 +00:00
Ludwig Nussel
7132b492dd
don't read more memory than available in jpg decode
2008-02-14 11:13:42 +00:00
Ludwig Nussel
c77f537ae3
make pcx decoder more robust against corrupt files
2008-02-14 11:13:30 +00:00
Ludwig Nussel
85ba66e7e8
move all image decoders into separate files
2008-02-14 11:13:18 +00:00
Ludwig Nussel
a3d62033d8
make tga decoder more robust against corrupt files
2008-02-14 11:12:59 +00:00
Ludwig Nussel
02d842532e
make bmp decoder more robust against corrupt files
2008-02-14 11:12:42 +00:00
Ludwig Nussel
f65dbd4351
integer overflow safeguards
2008-02-12 10:03:43 +00:00
Ludwig Nussel
4eec54c338
move png support to separate file
2008-02-12 10:03:21 +00:00
Tim Angus
b9ab949ec7
* Replace "powered by ioq3" text with ui_ioq3 CVAR_ROM
...
* Guess display aspect based on the desktop resolution
* Sort detected resolutions by...
+ closeness to display aspect
+ ascending width
+ ascending height
* Apply Q3 coding style to resolution detection code
2007-12-11 00:19:23 +00:00
Tim Angus
e8d3c48535
* Whitespace consistency in tr_init.c
2007-11-07 20:16:37 +00:00
Tim Angus
31c24bd0d2
* (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)
...
* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
2007-11-02 23:36:23 +00:00
Tim Angus
1d54a9ebe5
* Revert 1176 -- MinGW's headers are too old *sigh*
...
* Revert to using literal function pointers for GL extensions rather than PFN*
typedefs as some platforms' headers are broken enough that they prevent
SDL_opengl.h from fixing things up if the PFN* typedefs are missing
2007-09-12 18:02:38 +00:00
Tim Angus
4f4f0c0dab
* Remove use of GL_ARB_multitexture since this has been part of the
...
core API for many years now
2007-09-10 22:28:58 +00:00
Tim Angus
904cce6311
* Replace the ugliness in qgl.h with SDL_opengl.h
2007-09-05 18:56:39 +00:00
Tim Angus
672cfbf16f
* Merge unified-sdl to trunk
...
* Bump Q3_VERSION to 1.35
2007-09-05 18:17:46 +00:00
Tim Angus
034e6e8f20
* Rewrite of R_LoadImage to make it more generic and data driven
2007-08-26 21:27:46 +00:00
Tim Angus
4997c4764a
* (bug 3112) Removal of QVM name obfuscation (TsT <tst2006@gmail.com>)
...
* Add developer warning when texture loading falls back on jpg from tga
* Remove uppercase extension hack from texture loading since the Q3 pk3
file system is case insensitive anyway and you would likely want to
know about the failures when loading images from the native FS
2007-08-24 00:04:08 +00:00
Tim Angus
1144f567e8
* PNG support from Joerg Dietrich <dietrich_joerg@t-online.de>
...
* Cleanup of tabulation in R_LoadImage
2007-08-23 17:23:15 +00:00
Tim Angus
5e35d88b9b
* (bug 3076) Map cycle breaks on empty or bot only servers (misanthropia)
...
* (bug 3303) Removal of never compiled code from cgame drawing functions (beast
<info@dbwatersports.com>)
* (bug 3297) Add missing limit to Q3 UI server info (beast
<info@dbwatersports.com>)
* (bug 3029) Fix to shader hash table being overpopulated (identified by
Stefan "#@" Langer <raute_at@gmx.de>)
2007-08-23 00:22:20 +00:00
Ludwig Nussel
3992f1a59c
fix gcc 4.2 warnings about cast from pointer to integer ( #3317 )
2007-08-19 12:05:17 +00:00
Ludwig Nussel
686d365397
print the shader loading message if the cvar "developer" is set
2007-08-16 15:16:32 +00:00
Ludwig Nussel
9016006312
don't spam console with "loading..." messages when loading shaders
2007-08-16 14:52:29 +00:00
Tony J. White =
c1ed094e53
* (bug 2972) add r_swapInterval support to SDL client (if libSDL >= 1.2.10)
2007-05-22 03:42:32 +00:00
Thilo Schulz
15fe54a6e7
Fix annoying bug where transparent surfaces wouldn't draw over skyboxes. Thanks to Stefan Langer a.k.a. #@ for providing the fix.
2006-12-15 13:46:13 +00:00
Tim Angus
bd9e7c4b8f
* Add r_customPixelAspect to support displays with non 1:1 pixel aspects (do
...
such things exist?)
* Remove r_customaspect as its value is implied through the other three
r_custom cvars
2006-12-04 13:37:50 +00:00
Thilo Schulz
5568c9fcad
Fix endian issue in MDR loading.
2006-09-22 12:53:03 +00:00
Tim Angus
e41d081710
* qvm files no longer installed by "make copyfiles"
...
* Loopback clients only get snapshots at the server frame rate now
(Anonymous <nkylqinhvgcbyl@mailinator.com>)
* JPEG chroma subsampling disabled if the quality value is >= 85
(Anonymous <nkylqinhvgcbyl@mailinator.com>)
* cl_lanForcePackets. When set to 0 (default is 1) the cl_maxpackets setting
will be ignored if on a LAN. (Anonymous <nkylqinhvgcbyl@mailinator.com>)
2006-08-13 17:09:05 +00:00
Thilo Schulz
5efd7c8c36
Another patch to make uncompressed AVI write in RGB24 format by anonymous virtualdub sympathiser.
2006-07-31 15:32:59 +00:00
Thilo Schulz
3a1c4aa457
Fix from the VirtualDub people which should make avi files created with the video command playable with numerous windows players.
2006-07-31 13:05:15 +00:00
Tim Angus
fda7db7619
* Fix the MinGW build. Ugh.
2006-05-06 16:01:41 +00:00
Thilo Schulz
d21411452e
Add string length checking to function COM_StripExtension. This fixes the R_RemapShader buffer overflow exploit that can be found here:
...
http://milw0rm.com/exploits/1750
2006-05-06 01:56:24 +00:00
Ludwig Nussel
8895df0925
- remove leftover anistropic filtering variables from glconfig_t
...
- check size of glconfig_t to prevent accidential ABI breakage in the future
2006-04-30 15:00:39 +00:00
Thilo Schulz
12a2b7694a
- Fixed incompatibility to original VMs introduced by anisotropic filtering patch.
...
- Removed dependency of flares from tr.identityLight because they are barely visible with r_overbrightbits set to 1
2006-04-30 14:32:56 +00:00
Thilo Schulz
55453fd919
Fix for skybox blacklines bug on non-SDL compilations.
2006-04-27 14:48:35 +00:00
Tim Angus
68b9eb3fba
* Anisotropic texture filtering (from Echon)
2006-04-22 22:14:15 +00:00
Thilo Schulz
40d5eee8ef
Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.
2006-04-22 18:24:50 +00:00
Thilo Schulz
57cc0f901e
Still some little improvements to flares.
2006-04-20 16:52:39 +00:00
Thilo Schulz
c552a46e5f
Fix for flares. Can be enabled by setting r_flares 1
2006-04-20 04:43:43 +00:00
Tim Angus
21e0bdd993
* Fix to (static!) buffer overflow in renderer (from Thilo Schulz)
2006-04-14 20:15:58 +00:00
Tim Angus
a235245e35
* Fixes to MDR implementation from Thilo Schulz
2006-04-14 20:13:49 +00:00
Tim Angus
a596185844
* Fixed radix sort on big endian platforms (from tjw, blame Timbo for the bug)
2006-04-14 19:54:56 +00:00
Tim Angus
947ebb932e
* SDL build no longer requires a vid_restart when changing r_fullscreen
2006-01-25 17:57:53 +00:00