wined3d: Do checks at the start of surface_init() (LLVM/Clang).