Commit 5f723bc4 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Allocate the proper size for the lconst map.

parent bb902d68
...@@ -352,7 +352,7 @@ static DWORD *local_const_mapping(IWineD3DBaseShaderImpl *This) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment