case fixes for various paths
fixed shader compile error on nvidia GTX580, linux driver 310.19

error before fix:
0(34) : error C7011: implicit cast from "int" to "uint"