summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-06-07Horizontal scroll should not cause K_MWHEELDOWN key pressZack Middleton
2015-06-07OpenGL2: Use signed value in case value goes below 0.SmileTheory
2015-06-07Fix MDR surface indexes overflow checkZack Middleton
Also, use the check overflow macro like everywhere else.
2015-06-07OpenGL2: Fix shadow cubemap segfaultZack Middleton
Changed image size to 512, but 'data' buffer is only 16x16 resulting in libGL segfault. Use NULL instead like other dynamic images.
2015-06-07Fix return values in nested system calls from QVMs/dev/humancontroller
When the engine is compiled with Clang it appears that the return value is being written to the WRONG address, either due to the vm_ variables being changed (unexpectedly) elsewhere, or as a result of bad assembly assumptions; having a stack variable pointing to where to write the return value seems to do the trick. This fixes the case where, for a trap_Register()-like call, weird numbers are being returned when, during the process, an error message is printed (which in Tremulous results in a QVM call and (nested) system call).
2015-06-07OpenGL2: Fix shadow cubemap sizeAuthor: Xycaleth
2015-06-07Fix Com_RandomBytes weak-random case/dev/humancontroller
255 is valid for unsigned char too.
2015-06-07unzip: comment why there is no USE_INTERNAL_MINIZIP boolean optionSimon McVittie
Bug: https://github.com/ioquake/ioq3/pull/116
2015-03-17OpenGL2: Fix culling again.SmileTheory
2015-03-17Don't run vid_restart when "resized" to current sizeZack Middleton
2015-03-17OpenGL2: Remove unused function prototype from tr_fbo.cZack Middleton
2015-03-17Fix incorrect strncpy in S_AL_StartBackgroundTrackZack Middleton
Error is loop argument is NULL. Ensure that s_backgroundTrack is a null terminated string.
2015-03-17Inform how many shader stages the max is in the warning messageEnsiform
2015-03-17Add arrow key support for win32 consoleXycaleth
2015-03-17Move Event processor call down below the mouse checks.Ensiform
Only send mouse events if both values are non-zero. Hopefully this helps with the event overflow spam that can sometimes happen on loads or laggy situations.
2015-03-17Fix crash in MSVC x64 qsnapvectorsse, bug #5905Zack Middleton
Make MASM x64 qsnapvectorsse the same as the inline version. Remove leftover OP code, see commit 8a500d71daaadf199957309f5ee4d8c0fc2157da.
2015-03-17Set float rounding mode on non-Windows platformsZack Middleton
Sys_SetFloatEnv in sys_unix.c existed but was not called. It sets the rounding mode to "to nearest" which is the default on Linux. Might be required on other platforms, I don't know.
2015-03-17Use MSVC mode marcos for creat in q3cpp on WindowsZack Middleton
Using unix mode 0666 for creat was causing crashes when compiled with MSVC. So use the marcos recommended by MSDN. MinGW also has the marcos, so apply to Windows builds in general.
2015-03-17Ensure that mbstowcs does not overflow its bufferSimon McVittie
Similar to one of the changes by Tim Angus in fd986da: mbstowcs' third argument is the number of wchar_t available in dest, not the number of bytes. This does not appear to be exploitable, because ioquake3 does not actually call mumble_set_identity() or mumble_set_description() anywhere, but it might be relevant to derivatives. Spotted via compiler warnings.
2015-03-17Stop LCC from warning about null pointer conversion to function pointerJun Woong
Fixed LCC to correctly diagnose expressions with NPC. It no longer reports messages such as warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent
2015-03-17q3lcc option -lcppdir and -lrccdirPan7
2015-03-17Fix case where interval overflows (thanks jackeri)Tim Angus
[17:58] <Jacker> hey, you might be interested in checking out this https://github.com/etlegacy/etlegacy/commit/4da5a397b5994bfe5fddb9dad35bef5ddbea64c9#diff-acaedc9d8b492f9af8966ae68597392cR615 [17:58] <Jacker> its related to the ddos protection code you wrote [17:59] <Jacker> in continuation to: ab9b08e5845b0ff19814c996ad0cfb1dccab2790 [17:59] <Jacker> in a case if the client has in the past connected to the server days/weeks earlier and time wraps the client wont be able to connect [18:00] <Jacker> since in that case if the bucket of that clients ip still exists it wont get checked correctly
2015-03-17Include stdint.h instead of inttypes.h in libmumblelink.cZack Middleton
MSVC 2010 has stdint.h but not inttypes.h. Debian (GCC, MinGW) and OS X (Clang) can compile using stdint.h.
2015-03-17Windows header files for q3lccPan7
2015-03-17Renaming outp to outbufp because outp() is an existing functionPan7
2015-03-17Fix reading 4 byte UTF-8 text inputZack Middleton
2015-03-17Fix compile error with ml64 assemblerMichael Rieder
2015-03-17Fix saving/loading glyph 255 in RegisterFontZack Middleton
The glyph for character 255 (lower case y with two dots above it) was rendered, but it's glyph information was not stored in fontInfo_t and not saved into .dat file (including the ones in Team Arena). Attempting to load it from existing .dat font files is fine because shader name is "" and gets 0 handle. The handle was already 0 anyway.
2015-03-17OpenGL2: Fix face culling.SmileTheory
2015-03-17OpenGL2: Ensure tess VAO is bound before using it.SmileTheory
2015-03-17Fix stencil shadows not drawing if has 500 or more vertexesZack Middleton
Stencil shadow is not drawn if a mesh, or multiple meshes with the same entity and shader, have more than 500 vertexes. The issue is caused by storing the projected positions in the tess vertex buffer. Use a new array instead.
2015-03-17Don't set fog image border colorZack Middleton
GL1's R_CreateImage sets GL texture to 0 before it ends, so border color is not applied to the fog image. GL_CLAMP is not used for fog image (in either renderer), so it would presumably not be used even if applied to the fog image.
2015-03-17Remove unfinished OpenGL display list codeZack Middleton
It seems unlikely anyone is going to do anything with this aside from stub it out in OpenGLES ports.
2015-03-17Correct a few OpenGL variable typesZack Middleton
Affectly no change for desktop OpenGL. Use correct types for OpenGLES support.
2015-03-17OpenGL2: Bit more parallax optimization.SmileTheory
2015-03-17OpenGL2: Add support for parallax occlusion mapping.SmileTheory
2015-03-17OpenGL2: remove lightmap support from generic glsl shader. This path was ↵SmileTheory
barely used and doing this compiles fewer shaders.
2015-03-17Clear window buffer when it's createdZack Middleton
When starting the game in windowed mode, the window buffer used whatever was on the screen before running the game. Kind of like you could see through the window, but it doesn't update what happens behind it. It makes it look like something is broken or non-responsive. So clear the window opengl buffer to black. Credit to theinvsblman for the code.
2015-03-17Remove accidentally added increment.SmileTheory
2015-03-17OpenGL2: Support half floats for texcoords and vertex colors.SmileTheory
2015-03-17Always use GL_Cull to change cull stateZack Middleton
Manually changing cull state can cause later GL_Cull calls to not change the cull state.
2015-03-17Fix pid file ignoring user set fs_homepathZack Middleton
Create pid file in fs_homepath instead of (always) default homepath. If not manually set, fs_homepath is set to Sys_DefaultHomePath().
2015-03-17OpenGL2: Change normal/tangent vertex encoding.SmileTheory
2015-03-17OpenGL2: Speed up tonemap shader.SmileTheory
2015-03-17OpenGL2: Fix corrupt models.SmileTheory
2015-03-17OpenGL2: Bit of multidraw optimization.SmileTheory
2015-03-17Fix a bug in previous commit.SmileTheory
2015-03-17OpenGL2: Fix missing surfaces with r_mergeMultidraws 2.SmileTheory
2015-03-17OpenGL2: Interleave vertex data for static MD3s.SmileTheory
2015-03-17OpenGL2: Fix invalid texture parameter.SmileTheory