Stefan Dösinger : wined3d: Allocate the proper size for the lconst map.

Alexandre Julliard julliard at winehq.org
Fri May 29 09:15:50 CDT 2009


Module: wine
Branch: master
Commit: 5f723bc44a768af5f9ca5f2d4e4f8ea1575e87a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5f723bc44a768af5f9ca5f2d4e4f8ea1575e87a4

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu May 28 17:11:30 2009 +0200

wined3d: Allocate the proper size for the lconst map.

---

 dlls/wined3d/arb_program_shader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 5d37440..8b9e185 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -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;




More information about the wine-cvs mailing list