added gsi code, untested

problem with first frame being all-black: should try moving the
enable/disable depth-test commands back to where they were?