开发者

D3D Failed to generate mipmap automatically on some cards!

On most of computers my program performs fine. But on one computer it failed to generate mipmap.

I created a texture with D3DUSAGE_AUTOGENERATEMIPMAP,

D3DCAPS2_CANAUTOGENMIPMAP says yes and CheckDeviceFormat says D3D_OK(not D3DOK_NOAUTOGEN) too.

then I use LoadSurfaceFromMemory to fill the texture.

But on that pa开发者_高级运维rticular computer, no mipmap is generated. What's worse, the computer is my leader's!!


I'd bet its an intel (or other lesser manufacturer) integrated or that its drivers are not up-to-date. If it works using the "reference" (REF) driver then its a driver bug.

If you are loading a surface from memory anyway is it really that much extra to call D3DXFilterTexture afterwards? Its far more likely to work.

Alas you discover the joys of caps that outright lie :(

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜