No more than watching the same amount of television would. Sitting extremely close to the screen for hours on end is the one genuinely harmful habit, and that applies to any screen rather than games specifically.
I have been gaming since I was three and still have 20/20 vision. The habit that makes the difference is taking a short break, around ten minutes, for every hour you play. That rests your eyes and, as a bonus, your attention span.