wined3d: Allocate the proper size for the lconst map.
This commit is contained in:
parent
bb902d6810
commit
5f723bc44a
|
@ -352,7 +352,7 @@ static DWORD *local_const_mapping(IWineD3DBaseShaderImpl *This)
|
||||||
|
|
||||||
if(This->baseShader.load_local_constsF || list_empty(&This->baseShader.constantsF)) return NULL;
|
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) {
|
if(!ret) {
|
||||||
ERR("Out of memory\n");
|
ERR("Out of memory\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue