set GL state before deferred pass