Józef Kucia : wined3d: Use correct layer count for 3D textures.