Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a video and and image slide show being rendered simultaneously. Both video and the image is being rendered by the help of texture and two different quads. Video is being rendered on the whole screen but the image of the slide show is being rendered along the video on some particular area of the screen. I am using pixel shader to give effects in my slide show but the pixel shader is affecting both the textures being rendered that is my video and the image slide show. But I want it to give effect only to the image slide show. For this I am doing Device.PixelShader=null when the video quad is being drawn but giving my pixel shader to the device when the the image is being drawn. But I want to know that is there any other way that can prevent my video quad from the effect pf the pixel shader.

share|improve this question
up vote 0 down vote accepted

Yes, that's what you are supposed to do. When you use a shader, it stays bound yo the graphics card until you set a new one, so unselect it when you don't want it to be applied.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.