removed typecasts that are no longer necessary becaue of ScopedTextureBind vs2013 workaround