I stumbled across this thread that describes a (hacky) solution how to choose the device manually. Well, as can be read in this thread, this is not that easy. Therefore, an appropriate solution to that issue could be to choose the display device instead of using the default one. However, at a closer look, one may come up with the idea that the system simply chooses the wrong candidate out of two (Intel, GDI). Although the display adapter (in my problematic case a Mobile Intel 4 Express Chipset) seems to be available with support for OpenGL 2.1 (I've checked this with OpenGL Extension Viewer 4.0) the GL_RENDERER that is used for my application is Microsoft's Generic GDI renderer.įirst idea, of course: Driver problem. In the context of switchable graphics, I end up with the problem that opengl32.dll uses the wrong device if an accelerated window is created with CreateWindow. Let me bump this thread, because it looks very similar to the issue that I'm struggling with at the moment (see this gamedev thread). in my case it's two completely different drivers for the two cards. For example I don't know what happens if the same driver controls both cards. Since it's that simple there's _probably_ a way to hack it without changing the primary monitor too, but I don't know how.Īlso, it's definitely not guaranteed to always work on other configurations. though I guess you could change the primary monitor programmatically if you just want it for yourself. I've actually tested that on my system with Windows 7 64 and one AMD and one NVidia card, and it works, but it's a pain and not really a viable solution. It's rather annoying though, as you can actually select one monitor as primary, create one OpenGL context which will use that monitor, then go into the control panel and switch which monitor is primary while that OpenGL context is running, and afterward create one more OpenGL context, and you will have one context on each card. As far as I know there's no reliable way to override that. Normally, it usually(always?) uses the adapter that you have set as your primary monitor with the start-menu in the monitor control panel. I'm not sure if that actually works for multiple cards from different vendors though. They're usually only available in work-station drivers, and unfortunately not in the drivers for desktop-versions of the cards. There are vendor- and platform-specific extensions that can do it for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |