Re: [2/3] d3dx9: Implement D3DXCreateTextureFromFileInMemoryEx

2010-08-31 Thread Owen Rudge
Hi Henri, Probably depends on the device supporting NPOT textures again. The capabilities are checked in the D3DXCheckTextureRequirements function, and the values adjusted if necessary. (Yeah, this is a mostly unchanged copy of my earlier comments.) My apologies, I somehow missed the pre

Re: [2/3] d3dx9: Implement D3DXCreateTextureFromFileInMemoryEx

2010-08-31 Thread Henri Verbeet
On 26 July 2010 23:05, Owen Rudge wrote: > +if ((filter & 0x) > D3DX_FILTER_BOX && filter != D3DX_DEFAULT) > +return D3DERR_INVALIDCALL; > + > +if ((mipfilter & 0x) > D3DX_FILTER_BOX && mipfilter != D3DX_DEFAULT) > +return D3DERR_INVALIDCALL; > + > +if (!filter