cnq3/code/renderer
myT d6f77a9b35 fixed crashes due to render command list overflows
also increased the buffer's size (e.g. to draw all chars in the console in 4K)

one of the crashes happens in R_SortDrawSurfs:
-> render command list is too full
-> RE_EndFrame returns early because it can't allocate RC_SWAP_BUFFERS
-> R_ClearFrame in RE_EndFrame doesn't get called
-> the next frame starts with r_firstSceneDrawSurf etc. not being reset to 0
-> r_firstSceneDrawSurf becomes really close to the maximum draw surface limit
-> the draw surface list is iterated incorrectly (no wrapping handled)
-> we fetch a draw surface we shouldn't
-> its sort key gets decoded and we get an invalid sorted shader index
-> we fetch a NULL shader at that index location
-> we attempt to read shader->sort
-> we crash reading address 76
-> 76 bytes is exactly the offset of the sort member into the shader_t struct
2020-05-08 03:38:26 +02:00
..
dxgi D3D11 tweaks, added r_d3d11_presentMode, removed r_d3d11_maxQueuedFrames 2020-02-24 01:48:43 +01:00
hlsl depth fade fixes and improvements 2020-04-26 16:32:51 +02:00
stb_image.cpp reverting to old code for .tga image decoding, but with tweaks and fixes 2020-02-18 04:42:28 +01:00
stb_image.h using stb_image to load png and tga images 2017-06-04 16:37:57 +02:00
tr_backend.cpp depth fade fixes and improvements 2020-04-26 16:32:51 +02:00
tr_backend_d3d11.cpp renamed r_noiseScale to r_ditherStrength for consistency 2020-04-28 17:04:43 +02:00
tr_backend_gl2.cpp depth fade fixes and improvements 2020-04-26 16:32:51 +02:00
tr_backend_gl3.cpp renamed r_noiseScale to r_ditherStrength for consistency 2020-04-28 17:04:43 +02:00
tr_bsp.cpp added r_transpSort and we can now sort all surface types by depth 2020-04-16 05:01:48 +02:00
tr_cmds.cpp fixed crashes due to render command list overflows 2020-05-08 03:38:26 +02:00
tr_curve.cpp import from cnq3 1.47 2016-12-17 20:43:04 -08:00
tr_help.h renamed r_noiseScale to r_ditherStrength for consistency 2020-04-28 17:04:43 +02:00
tr_image.cpp r_mapBrightness can now be used with r_fullbright for lightmapped surfaces 2020-02-27 05:26:19 +01:00
tr_init.cpp fixed crashes due to render command list overflows 2020-05-08 03:38:26 +02:00
tr_light.cpp merge the new build system 2016-12-29 20:13:59 -08:00
tr_local.h fixed crashes due to render command list overflows 2020-05-08 03:38:26 +02:00
tr_main.cpp added r_transpSort and we can now sort all surface types by depth 2020-04-16 05:01:48 +02:00
tr_marks.cpp import from cnq3 1.47 2016-12-17 20:43:04 -08:00
tr_mesh.cpp removed r_nobind and r_showImages, wrote help etc. for the renderer's other temp/cheat CVars 2020-04-02 05:06:00 +02:00
tr_model.cpp added pattern matching filtering to /modellist /skinlist /imagelist /shaderlist 2019-09-25 05:29:13 +02:00
tr_noise.cpp map download improvements 2019-02-14 04:22:45 +01:00
tr_public.h added OpenGL 3.2 and Direct3D 11 renderer back-ends 2019-09-25 05:25:59 +02:00
tr_scene.cpp added r_transpSort and we can now sort all surface types by depth 2020-04-16 05:01:48 +02:00
tr_shade.cpp depth fade fixes and improvements 2020-04-26 16:32:51 +02:00
tr_shade_calc.cpp added OpenGL 3.2 and Direct3D 11 renderer back-ends 2019-09-25 05:25:59 +02:00
tr_shader.cpp depth fade fixes and improvements 2020-04-26 16:32:51 +02:00
tr_sky.cpp fixed r_showsky and cleaned up the related GAL code 2020-04-02 04:50:12 +02:00
tr_surface.cpp added OpenGL 3.2 and Direct3D 11 renderer back-ends 2019-09-25 05:25:59 +02:00
tr_world.cpp fixed dynamic light face culling using the untransformed (world-space) light position 2020-02-26 23:01:28 +01:00