wined3d: Allocate the proper size for the lconst map.

This commit is contained in:
Stefan Dösinger 2009-05-28 17:11:30 +02:00 committed by Alexandre Julliard
parent bb902d6810
commit 5f723bc44a
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ static DWORD *local_const_mapping(IWineD3DBaseShaderImpl *This)
if(This->baseShader.load_local_constsF || list_empty(&This->baseShader.constantsF)) return NULL;
ret = HeapAlloc(GetProcessHeap(), 0, sizeof(DWORD) * This->baseShader.limits.temporary);
ret = HeapAlloc(GetProcessHeap(), 0, sizeof(DWORD) * This->baseShader.limits.constant_float);
if(!ret) {
ERR("Out of memory\n");
return NULL;