We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32005e8 commit 266f6bbCopy full SHA for 266f6bb
src/Layers/xrRenderPC_R1/FStaticRender_Loader.cpp
@@ -177,13 +177,16 @@ void CRender::LoadBuffers (CStreamReader *base_fs)
177
u32 count = fs->r_u32();
178
DCL.resize (count);
179
VB.resize (count);
180
+
181
+ u32 buffer_size = (MAXD3DDECLLENGTH+1)*sizeof(D3DVERTEXELEMENT9);
182
+ D3DVERTEXELEMENT9 *dcl = (D3DVERTEXELEMENT9*)_alloca(buffer_size);
183
184
for (u32 i=0; i<count; i++)
185
{
186
// decl
187
188
// D3DVERTEXELEMENT9 *dcl = (D3DVERTEXELEMENT9*) fs->pointer();
- u32 buffer_size = (MAXD3DDECLLENGTH+1)*sizeof(D3DVERTEXELEMENT9);
- D3DVERTEXELEMENT9 *dcl = (D3DVERTEXELEMENT9*)_alloca(buffer_size);
189
190
fs->r (dcl,buffer_size);
191
fs->advance (-(int)buffer_size);
192
0 commit comments