app/internal/d3d11: change NewBackend to only require a ID3D11Device

Completing the goal of allowing foreign Direct3D contexts for our
D3D backend, slim down the constructor to take only the device handle.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-04 19:59:44 +01:00
parent c3dde562df
commit 0e723fa192
3 changed files with 35 additions and 36 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func init() {
}
func (c *d3d11Context) Backend() (backend.Device, error) {
return d3d11.NewBackend(c.dev)
return d3d11.NewBackend(c.dev.Handle)
}
func (c *d3d11Context) Present() error {