You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
I downloaded the revision 988, installed the latest DirectX SDK and tried to compile. I disabled in the IrrCompileConfig.h the support for DX8 (//#define _IRR_COMPILE_WITH_DIRECT3D_8_) and I got this when I tried to compile:
--------------------Configuration: Irrlicht - Win32 Debug--------------------
Compiling...
CGUIContextMenu.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\cguicontextmenu.cpp(625) : error C2446: '!=' : no conversion from 'const class irr::gui::CGUIContextMenu *const ' to 'class irr::gui::IGUIContext
Menu *'
Conversion loses qualifiers
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\cguicontextmenu.cpp(625) : error C2230: '!=' : indirection to different types
COpenGLDriver.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\copengldriver.cpp(309) : error C2374: 'i' : redefinition; multiple initialization
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\copengldriver.cpp(270) : see declaration of 'i'
CTRTextureGouraudNoZ2.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\ctrtexturegouraudnoz2.cpp(228) : error C2660: 'getTexel_plain' : function does not take 3 parameters
Generating Code...
Error executing cl.exe.
Irrlicht.dll - 4 error(s), 0 warning(s)
Hmm, revision 989 will fix at least one of the problems. The GUI context menu seems correct to me, I've also fixed some parts there, though. The software driver problems seems to need a method renaming I guess. For now you might want to disable BURNINGSVIDEO in IrrCompileConfig.
BTW: There is a bug forum for such problems.