Am 08.01.2014 um 13:04 schrieb Henri Verbeet hverbeet@gmail.com:
On 8 January 2014 12:40, Stefan Dösinger stefandoesinger@gmail.com wrote:
I somewhat suspect it'll use the root color key for 3D rendering and the key from individual surfaces for blits. The current code is just wrong either way though.
Did you test if it is possible to set a color key on a mipmap sublevel?
I just did, looks like it returns DDERR_NOTONMIPMAPSUBLEVEL.
I guess that answers where the color keys for draws and blits involving mipmaps come from - assuming those operations even have a defined result.
I’ll test Prince of Persia 3D once I’m back on Linux with your patches. This game uses color keys, and I am fairly sure it uses mipmapped textures. I don’t know if it combines those two though.