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