Possible issue in dlls/d3dx9_36/surface.c?