Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Beginner question. Synopsis: my water effects does something that causes the drawing of my sky sphere to throw an exeption when run in full screen. The exception is:

XNA Framework HiDef profile requires TextureFilter to be Point when using texture format Vector4.

This happens both when I start in full screen directly or switch to full screen from windowed. It does NOT happen, however, if I comment out the drawing of my water.

So, what in my water effect can possibly cause the drawing of my sky sphere to choke???

share|improve this question
Does your shader change the render states in any way? – ClassicThunder Feb 17 '12 at 14:24
3  
It might be helpful if you could show some code, especially around the area where you hit that error. – Nic Foster Feb 17 '12 at 15:09
Are you using BasicEffect or a custom shader? – David Lively Jul 28 '12 at 20:14
With "water effect" I ment a custom shader. :-) – danbystrom Jul 30 '12 at 6:55

1 Answer

You need to set the SamplerState[0] to SamplerState.PointClamp before your DrawIndexedPrimitive call.

share|improve this answer

Your Answer

 
discard

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.