Skip to content

Commit d5736bf

Browse files
authored
use primary device index instead of hard coded index (#646)
1 parent fc4633f commit d5736bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rendering/gpu_application_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (g *GPUApplicationInstance) Initialize(window RenderingContainer, app *GPUA
8484
if err := g.SelectPhysicalDevice(nil); err != nil {
8585
return err
8686
}
87-
if err := g.SetupLogicalDevice(0); err != nil {
87+
if err := g.SetupLogicalDevice(g.primaryDeviceIndex); err != nil {
8888
return err
8989
}
9090
g.SetupDebug()

0 commit comments

Comments
 (0)