You should NOT call GpiSelectPalette; OpenGL will do this for you. pglSelectColorIndexPalette is only used for Color Index contexts.