   Switching between textures and vertex color
  I'm drawing some quads for my UI, and up until now I've been using the vertex color with these settings:SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_DIFFUSE );SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_CURRENT );SetRenderState( D3DRS_DIFFUSEMATERIALSOURCE, D3DMCS_COLOR1 );SetRenderState( D3DRS_COLORVERTEX, TRUE );You guys helped me with that, and it's been working great. But now I need some of the quads to be textured, and I can't figure out what settings to switch back and forth. This will get a quad textured:SetTextureStageState(0,D3DTSS_COLOROP,D3DTOP_SELECTARG1);SetTextureStageState(0,D3DTSS_COLORARG1,D3DTA_TEXTURE);However, it messes up t he colors for everything else. I'm not sure what to change these back to to get it colors also working.Thanks for any helpEDIT:Looks like I've figured it out. I have to set D3DTSS_COLORARG1 to  D3DTA_DIFFUSE each time I draw a colored quad. I assume that setting a texture changes that on its own.[Edited by - M4573R on April 5, 2010 5:49:22 PM]
  It's your "SetTextureStageState(0,D3DTSS_COLORARG1,D3DTA_TEXTURE);" call that changes that. :)Why are you setting D3DTSS_COLORARG2 for the diffuse? And if you just want diffuse, you should have that D3DTOP_SELECTARG1 up front. The default operation is to multiply the two arguments.   