This patch makes the code the best so far and fixes a number of problems Changelog - Initialize the texture state information - Add dummy textures so texture operations which dont reference the texture can work - Support 2d and 3d textures properly - Reapply the texture state information as textures get set, as opengl stores the state along with the bound texture whereas directx uses the current state information during the draw stage. - 3rd attempt to sort out lighting, for programs which dont set normals - Temporarily silence some unnecessary fixmes Note the fixmes are silenced because I have made the default texture and render states according to the docs, but some of them are not supported (yet) and often harmless. Each time a texture is changed, I reapply all the states and continually get the fixmes. Once more of the states are supported, I will revert back to a fixme for the ones which are left Jason
Attachment:
d3d8.code.patch
Description: Binary data