diff options
| author | lioncash <mathew1900@hotmail.com> | 2013-03-26 09:19:19 -0400 |
|---|---|---|
| committer | lioncash <mathew1900@hotmail.com> | 2013-03-26 09:19:19 -0400 |
| commit | ae62af8a930341934047a2c6fda767a793cc2c24 (patch) | |
| tree | fd05e9e7ad641eaa18c2ddce41e039464713786f /Source | |
| parent | b83be4875a6ec70ab78b0702f4b449dee73b7e13 (diff) | |
Array overrun fixed in VertexShaderCache for the DX11 plugin.
vs_constant_offset_table only has a size of 239. It was originally iterating up to element 241.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/VertexShaderCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/VertexShaderCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/VertexShaderCache.cpp index d727ce1ebf..6fdc815554 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/VertexShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/VertexShaderCache.cpp @@ -162,7 +162,7 @@ void VertexShaderCache::Init() for (k = 0;k < 64;k++) vs_constant_offset_table[C_TRANSFORMMATRICES+k] = 312+4*k; for (k = 0;k < 32;k++) vs_constant_offset_table[C_NORMALMATRICES+k] = 568+4*k; for (k = 0;k < 64;k++) vs_constant_offset_table[C_POSTTRANSFORMMATRICES+k] = 696+4*k; - for (k = 0;k < 4;k++) vs_constant_offset_table[C_DEPTHPARAMS+k] = 952+4*k; + vs_constant_offset_table[C_DEPTHPARAMS] = 952; if (!File::Exists(File::GetUserPath(D_SHADERCACHE_IDX))) File::CreateDir(File::GetUserPath(D_SHADERCACHE_IDX).c_str()); |
