In xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,