Closed sjbaines closed 1 year ago
I've added another commit which fixes this issue more thoroughly for Chapter 15. My Chapter 4 changes simply ensure that if there are multiple discrete devices then the first is chosen. My Chapter 15 changes are more substantial, and select the first device that is compatible with the display surface.
Closing this pull request as we have provided a similar implementation in chapter 1.
In systems with multiple discrete or integrated GPUS, ensures that the FIRST device is selected. Fixes #19 for chapter 4. Similar changes need to be applied to all later chapters.