Try to set stencil ref based on different texture format

This prefectly fixes Midnight Club 4 title screen as below however need to revert the stencil value as 0 in clearmode .Tricky one .

-Before
![screen00032](https://f.cloud.github.com/assets/3000282/1307656/04864826-31c3-11e3-82d1-b324f723d18e.jpg)


-After
![screen00031](https://f.cloud.github.com/assets/3000282/1307658/073ebe90-31c3-11e3-8998-97010fc0def2.jpg)