You need to sign in or sign up before continuing.
Commit fa1534ee authored by irrlicht's avatar irrlicht

fixed the problem with drivers claiming they can generate mipmaps althoug they cannot.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@952 dfc29bdd-3216-0410-991c-e03cc46cb475
parent faecfd46
......@@ -541,7 +541,9 @@ bool CD3D9Driver::queryFeature(E_VIDEO_DRIVER_FEATURE feature)
case EVDF_MIP_MAP:
return (Caps.TextureCaps & D3DPTEXTURECAPS_MIPMAP) != 0;
case EVDF_MIP_MAP_AUTO_UPDATE:
return (Caps.Caps2 & D3DCAPS2_CANAUTOGENMIPMAP) != 0;
// always return false because a lot of drivers claim they do
// this but actually don't do this at all.
return false; //(Caps.Caps2 & D3DCAPS2_CANAUTOGENMIPMAP) != 0;
case EVDF_STENCIL_BUFFER:
return StencilBuffer && Caps.StencilCaps;
case EVDF_VERTEX_SHADER_1_1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment