Fixed textures, primus bridge on linux NVIDIA Optimus&Bumblebee crash and speeded up window size queries.