Revert renamings from 591877ee0c64958303dcbb4f2af3d343a420cf6a Pragmatically speaking, absent any good reason otherwise, naming conventions for functions like Sys_Error should remain consistent with Quake for developer sanity.
render: merge R_View_UpdateWithScissor() and R_View_Update() Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Fix signed int overflows and tidy nearby documentation Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sys: improve error and crash handling Renames Sys_Error to Sys_Abort (now using the Engine Abort message) for clarity (as distinct from the non-fatal Host_Error). Includes the engine version in the Crash and Abort SDL dialogs. Linux: includes the glibc backtrace in the Engine Crash SDL dialog. Fixes CTRL+C not working while the SDL dialog is open. Fixes a double Sys_Error/Sys_Abort when memory corruption was detected. Windows: omits colours when printing a Crash to stderr (not supported). Makes signal handling (mostly) POSIX async-signal-safe. Fixes a slight bug in PRVM_ShortStackTrace(). Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
com: rename BSD strlcpy and strlcat The C standard reserves str* and mem* for the implementation. Checking for BSD or OS X is not a robust way to determine if libc provides these (eg glibc may implement them). Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Handle rsurface.texture == NULL here (not sure if it can happen).
Bring back a very simple r_showsurfaces 3. Sadly I don't quite understand r_showsurfaces 2 enough to bring it back, so we've got a gap now.
r_viewfbo 0: fix restoring GL_Scissor values at the end of skybox render. Fixes wrong handling of viewsize with r_viewfbo 0.
r_viewfbo 0: factor out motion blur. Motion blur doesn't NEED the blending pass.
r_viewfbo 0: skip the postprocessing/blending pass if there is nothing to blend. May save some fps on low-end systems. NOTE: Had to make sure that 2D rendering does not enable depth test, as in r_skipblend mode, the main framebuffer Z values are written to as part of regular 3D rendering. There appear to be no behavioral changes from this, but we need to be careful here. r_viewfbo 1 disables this logic (it differs in no other way from r_viewfbo 0)
R_BlendView: fix motion blur with viewsize != 100. OpenGL is only upside down if the render target isn't a FBO...
R_BlendView: fix motion blur by using the correct FBO for it. Motion blur has to be applied to the view FBO, not the (optional) screen FBO. Especially as the code generating runs before even writing to the screen FBO.
Add Baker's fix for spplying default lightstyle to q3bsp
vid: remove obsolete cvars Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Fix flags and naming of Q3BSP curve collision cvars, related tidying r_subdivisions_collision* were marked as client-only, so not registering them in the dedicated server in 3a58ad52e63635c93e95955f984fd6052156e56b broke Q3BSP curve collisions. Renamed to mod_q3bsp_curves_subdivisions* for consistency. Removed 3 obsolete mod_q3bsp cvars, moved r_fxaa to gl_rmain.c Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Fix GCC 11 warns: use uninitialized in R_CanSeeBox Introduced in 8ab339588b127e88e27bfa08f6eccbf9400b51f9 Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
Start render module CL_MeshEntities immediately prior to Models Fixes https://gitlab.com/xonotic/darkplaces/-/issues/366 Starting CL_MeshEntities any later can cause the bug during r_restart. ca03733fba98709e25d9a02882ac947f4144af6a effectively added dependency of the Models module on the CL_MeshEntities module, at least in certain situations where starting the Models module results in calls to Draw_CachePic() and DrawQ_*() which trigger the bug when they call Mod_Mesh_GetTexture(). Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
model_shared: Avoid using R_FrameData_Alloc when building sorted surfaces list Works around an issue where the r_framedatasize cvar would grow to a ridiculous size over time. To be investigated further...
edict: Move free and freetime into prvm_edict_t itself
cmd: Merge cmd_client and cmd_server into cmd_local. Third time's a charm. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13129 d7cf8633-e32d-0410-b094-e92efae38249