From: havoc Date: Sat, 19 Mar 2011 21:47:01 +0000 (+0000) Subject: fix an array index out of bounds error on X-Git-Tag: xonotic-v0.5.0~377 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e27c14fef1e19f21b2b37a67204406a0d74bff71;p=xonotic%2Fdarkplaces.git fix an array index out of bounds error on SHADERSTATICPARM_VERTEXTEXTUREBLEND_USEBOTHALPHAS git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10941 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=05bd75d2c2fd89278adea7b53fae425351f9446b --- diff --git a/gl_rmain.c b/gl_rmain.c index fbeb3b2e..5ea6bb04 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -850,7 +850,7 @@ enum SHADERSTATICPARM_POSTPROCESS_USERVEC4 = 5, ///< postprocess uservec4 is enabled SHADERSTATICPARM_VERTEXTEXTUREBLEND_USEBOTHALPHAS = 6 // use both alpha layers while blending materials, allows more advanced microblending }; -#define SHADERSTATICPARMS_COUNT 6 +#define SHADERSTATICPARMS_COUNT 7 static const char *shaderstaticparmstrings_list[SHADERSTATICPARMS_COUNT]; static int shaderstaticparms_count = 0; diff --git a/todo b/todo index 0306ca48..764cf7d0 100644 --- a/todo +++ b/todo @@ -42,6 +42,7 @@ 0 bug darkplaces qw: tf skins not working (xavior) 0 bug darkplaces readme: it would be a very good idea to add documentation of sv_gameplayfix_* cvars in the readme as a means to run broken mods (xaGe) 0 bug darkplaces readme: readme says that q3 shaders are not supported, this is not true, describe the working features in detail (qqshka) +0 bug darkplaces renderer deferred: scissoring artifacts are very obvious on shadowless lights, turn off scissor (Rock) 0 bug darkplaces renderer: GL13 path has broken handling of unlit surfaces in Nexuiz toxic.bsp - the small red light surfaces are black in GL13 path (m0rfar) 0 bug darkplaces renderer: coronas are not affected by fog (div0) 0 bug darkplaces renderer: if an animated model has transparent surfaces, each one calls RSurf_ActiveModelEntity, recomputing all vertices