here we should do glClear before endNativePainting