Fix error with gfxdemo on non-color devices