Hi everybody,
while working on a fix for a crash for our game Espadon Online I discovered a possible bug in the DX9 render system. I used a newly installed Windows where the DLLs with the shader/compiler stuff were missing and so DX internally was not able to assembly shaders (the other DLL is provided with our executables).
The place, where i discovered the bug is OgreD3D9GpuProgram.cpp. When the compiler DLL is not found, DX returns the error code 0x8007007E (The specified module is not found) in line 187 (D3DXAssembleShader) and all [out] variables of that method will have invalid values. While constructing the error message the variable errors will be used and causes the crash.
Normally the users should install the DX runtime (and the codes should generally catch all exceptions) but the problem still exists and I think this error case should be caught / treated. Maybe there are even more spots, where this might happen.
Greets grubi
Possible bug in DX9 RenderSystem
-
- OGRE Team Member
- Posts: 4308
- Joined: Mon Feb 04, 2008 2:02 pm
- Location: Germany
- x 137
Re: Possible bug in DX9 RenderSystem
Could you please also create a ticket for that issue on our bug tracker. That will ensure that is does not get lost. Thanks!
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
-
- Gnoblar
- Posts: 15
- Joined: Wed Oct 28, 2009 10:43 am
Re: Possible bug in DX9 RenderSystem
I'm unable to create a bug report. I get an error when submitting the code (security token missing).