wined3d: print real unhandled D3DCMPFUNC value

Jan Zerebecki jan.wine at zerebecki.de
Sun Aug 20 20:36:56 CDT 2006


On Sun, Aug 20, 2006 at 01:37:04PM -0700, Chris Robinson wrote:
> --- dlls/wined3d/device.c	10 Aug 2006 09:43:54 -0000	1.275
> +++ dlls/wined3d/device.c	20 Aug 2006 20:31:10 -0000
> @@ -3666,7 +3666,7 @@
>                  case D3DCMP_GREATEREQUAL:  glParm = GL_GEQUAL; break;
>                  case D3DCMP_ALWAYS:        glParm = GL_ALWAYS; break;
>                  default:
> -                    FIXME("Unrecognized/Unhandled D3DCMPFUNC value %ld\n", Value);
> +                    FIXME("Unrecognized/Unhandled D3DCMPFUNC value %ld\n", This->stateBlock->renderState[WINED3DRS_ALPHAFUNC]);

(I forgot if I verified this, but) I think that when a state is
beeing set This->stateBlock->renderState[State] has the previous
value and only Value has the one to be set. From a quick glance
it seems the code for this renderstate (and maybe more
renderstates) wrongly assumes the contrary.



Jan




More information about the wine-devel mailing list