if ((This->StateBlock->texture_state[Stage][D3DTSS_ALPHAARG1] ==
D3DTA_TEXTURE) &&
((oldTxt == NULL) && (pTexture != NULL)) || ((pTexture == NULL) && (oldTxt != NULL)))
{
while it occurs to me that you ment to achieve the following
if ( This->StateBlock->texture_state[Stage][D3DTSS_ALPHAARG1] ==
D3DTA_TEXTURE)
&& ( ( oldTxt == NULL && pTexture != NULL ) || ( pTexture == NULL && oldTxt != NULL ) ) )
You are 100% correct - I'll fix it next time I get into Linux...
Thanks for the feedback, its nice to know someone notices these things :-)
Jason