summaryrefslogtreecommitdiff
path: root/src/renderergl1
AgeCommit message (Collapse)Author
2017-03-09stop depending on the system-reserved _DEBUG preprocessor-define/dev/humancontroller
2017-02-07silence some MSVC warnings/dev/humancontroller
2016-04-07Replace 4 with sizeof( int ) in R_GetCommandBufferReservedZack Middleton
2016-04-07Fix reserved size for swap buffer command being too small on x86_64Zack Middleton
2016-04-07Fix crash from reading past end of tr.refdef.drawSurfsZack Middleton
The number of draw surfaces was range checked against number of surfaces for the current view but needs to check total for the frame otherwise can read past the end of the tr.refdef.drawSurfs array when there are multiple views.
2016-04-07Fix not swapping buffers because out of cmd buffer spaceZack Middleton
Reserve space for end of list and swap buffer commands. These are absolutely required and cannot be dropped. Dropping swap buffer command causes screen to not update and possible crash from drawsurf buffer overflow if not enough cmd buffer space for many continous frames.
2016-04-07Add support for uncompressed image upload flag to OpenGL1Zack Middleton
2016-04-07Remove unused define MAC_EVENT_PUMP_MSECZack Middleton
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.