added packed types to glGetMinMax and glGetHistogram error checks