static to const expr

A small fix to make gfx-rs compile with the current master.