Hi all!
Sorry for that... but... i have a fantastic stupid question :?

So: DirectX 8.1 Clootie header (Hi Clootie! )

var D3DMatA, D3DMatB: D3DMaterial8;
...
if D3DMatA=D3DMatB then ...
...

Compile -> Hmm, no, "Incompatible types...". Ok:

...
if D3DMatA.Ambient=D3DMatB.Ambient then ...
...

Compile -> Hmm, no, "Incompatible types...". Ok:

...
if (D3DMatA.Ambient.r=D3DMatB.Ambient.r) and (D3DMatA.Ambient.g=D3DMatB.Ambient.g) and ...
...

It works! But, <GH!> I'm sure that's not the right method :shock:

How to do it? Tanks in advance