adapt AbstractNativeContext to glwhite