[PATCH v4 1/9] ddraw: Store material handles in the global table.