[Bug 45590] Possible access to unintended variable in "wine/dlls/wined3d/ texture.c" line 2819