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