don't initialize tmp variables in glGet
add glGet for GL_CURRENT state