From e9daf92ae686b57e7d6095bc19af6632a113dc47 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 8 Oct 2008 16:00:53 +0200 Subject: [PATCH] wined3d: Assign the correct "levels" variable (LLVM/Clang). --- dlls/wined3d/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 79c9f68de32..6ba8bc0ebe5 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -962,7 +962,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa WARN("D3DUSAGE_AUTOGENMIPMAP is set, and level count > 1, returning D3DERR_INVALIDCALL\n"); return WINED3DERR_INVALIDCALL; } - Levels = 1; + object->baseTexture.levels = 1; } else if (Levels == 0) { object->baseTexture.levels++; tmpW = Width; @@ -1117,7 +1117,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface return WINED3DERR_INVALIDCALL; } - Levels = 1; + object->baseTexture.levels = 1; } else if (Levels == 0) { object->baseTexture.levels++; tmpW = EdgeLength;