summaryrefslogtreecommitdiff
path: root/src/renderergl1
AgeCommit message (Collapse)Author
2016-04-07Fix alloc size for default skin and single shader skinZack Middleton
Found by Coverity.
2016-04-07Backport ignoring values outside lightgrid to OpenGL1Zack Middleton
Fixes possibly of reading memory past end of lightGridData or reading wrong light grid data (wrapping around to next row).
2016-04-07Fix OpenGL2 ignoring last light grid point on each axisZack Middleton
Also change light grid bounds clamping to make it more clear what invalid values are.
2016-04-07Don't fog 3D crosshair spriteZack Middleton
2016-04-07Apply greyscaling to fog blocksZack Middleton
2016-04-07Move image load function prototypes to tr_common.hZack Middleton
The functions themselves are in code/renderercommon/tr_image_*.c
2015-06-08fix initialization based on r_width and r_height/dev/humancontroller
let the cvars default to "0"; upon video startup, if any of these are non-positive, try to pick up the desktop's resolution, and update the cvars
2015-06-07Fix MDR surface indexes overflow checkZack Middleton
Also, use the check overflow macro like everywhere else.
2015-03-17Inform how many shader stages the max is in the warning messageEnsiform
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-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-17Add function for clearing global shader instead of duplicating the codeZack Middleton
2015-03-17Fix renderergl1 warningsTim Angus
2015-03-17Fix a few warningsTim Angus
2015-03-17Port COM_ParseExt fixes to CommaParseZack Middleton
2014-08-28Fix incorrect rgbGen const reading uninitialized memoryZack Middleton
If ParseVector fails, color isn't fully set.
2014-08-28Use SDL 2 instead of SDL 1.2Tim Angus
2014-06-17Fix potential buffer overflow caused by long tcMod argsZack Middleton
Found by Coverity.
2014-06-17Make R_LerpTag return qfalse if MDR tag does not existZack Middleton
Elite Force SDK has trap_R_LerpTag return void, so this shouldn't cause issues for iostvef. Allows new games to check if a tag exists in a MDR model.
2014-06-17Remove unused extern qboolean charSetZack Middleton
No variable even exists.
2014-06-17Bunch of comment fixesTequila
2014-06-17Parse q3map_sunExt in OpenGL1 tooZack Middleton
Used for drawing sun, which is supported by both OpenGL1 and OpenGL2. OpenGL2 already parses it.
2014-06-17Fix typo in animMap and videoMap warningsZack Middleton
2014-06-17Fix R_GetEntityToken ending prematurelyZack Middleton
If spawn var key or value is "" it caused R_GetEntityToken (available to cgame, used by opengl2) to stop parsing, whereas game VM would continue. Changed it to match parsing used for game VM (see G_GET_ENTITY_TOKEN in code/server/sv_game.c). The map poq3dm5 has a "wait" key with value "".
2014-06-17Check for buffer overflow for rail/lightning surfacesZack Middleton
2014-06-17r_noborder changes require a restartIR4T4
2014-06-17Fix white flash levelshot bug in OpenGL1Zack Middleton
If you tried to draw the last loaded image, gl texture 0 (which is appearently white) was used because renderer thought the image was already bound. Why OpenGL1 renderer binds texture 0, I have no idea. It's been removed from OpenGL2.
2014-06-17Remove R_AddAnimSurfaces and R_MakeAnimModel prototypesZack Middleton
2014-06-17#6069: Remove md4 model support.SmileTheory
2014-06-17End current draw surface before drawing cinematicZack Middleton
Fixes drawing StretchPic *before* CIN_DrawCinematic resulting in cinematic being drawn before the StretchPic.
2014-06-17Fix flares being invisible after vid_restartZack Middleton
flareCoeff was only set if r_flareCoeff cvar was set as modified. Cvars are set as modified when created or changed.
2014-06-17Remove vertexLightmap from textureBundle_t, it's never qtrueZack Middleton
2014-06-17Remove unused shader state code from tr_local.hZack Middleton
2014-06-17Initialize blendIndexesType and blendWeightsTypeZack Middleton
2014-06-17Fix IQM comments refering to IQM_BYTE instead of IQM_UBYTEZack Middleton
2014-06-17IQM int/float vertex arrays were already swappedZack Middleton
2014-06-17Add support for IQM int blend indices and float blend weightsZack Middleton
Integer blend indices are converted to bytes at load, ioq3 doesn't allow more than 128 joints. Heavily based on code by @zippers.
2014-06-17Support IQMs with joints and no posesZack Middleton
2014-06-17Revert "5097 - Menu corrupted on start (on IRIX)"Zack Middleton
Calling glClear( any bits ) in GL_SetDefaultState makes connect screen black using the proprietary NVidia driver on Windows and GNU/Linux. This reverts commit 92573270de98a20cd78842bd2043cfe07bc5b2e1.
2014-06-17Fix crash caused by too many surfaces in skinZack Middleton
2014-06-17Fix IQM tess buffer overflowZack Middleton
Set the variables that use tess.numVertexes after calling RB_CHECKOVERFLOW() as it may set tess.numVertexes to 0! Could cause visual issues and error "RB_EndSurface() - SHADER_MAX_VERTEXES hit".
2014-06-17Only allow model meshes to have SHADER_MAX_VERTEXES - 1 vertexesZack Middleton
The last index is used to check for buffer overflows. See RB_CheckOverflow and RB_EndSurface.
2014-06-17Don't try to fog flares with fogNum 0Zack Middleton
fogNum 0 means no fog. Shaders don't try to apply fog color if fogNum is 0. This was done to make things more consistent and fix a crash in iortcw MP using a user made map on GNU/Linux x86_64.
2014-06-17Improve warning for shader missing opening braceZack Middleton
2014-06-17Check for shaders without closing braceZack Middleton
Shaders without closing brace can eat shaders in other files. Pass depth to SkipBracedSection instead of reparsing text as it messed up parse line numbers.
2013-05-31Fix null model axis disappearing if sky is in viewZack Middleton
2013-05-31Catch more bad shader syntax casesZack Middleton
Use to only ignore file in cases where both { and \0 were missing after shader name. Now ignore file when either are missing, such as "}\0".