used native resolution to automatically setup gl context dimensions