some state handling for GL structures