How to force OpenGL use discrete GPU

If your laptop or PC have more than one GPU then sometimes your OpenGL app can choose wrong card.

It is frequent situation on laptops where you have integrated card from Intel and some discrete from nVidia or AMD.

You can create profile for your app to run specific card, or you can force your app to use most powerful GPU, just add this code in some of your module:

You can read about nVidia here, and about AMD here

Большое спасибо за sharing, ребята! Ваша помощь бесценна,— блогу без этого не обойтись.
Если Вам понравилась статья — пошарьте, пожалуйста, в Facebook или Google+