Skip to content

Commit

Permalink
Fixed Wpf CompositionOverSoftware
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandKoenig committed Jun 11, 2022
1 parent f67a56c commit e7c3b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void IRenderLoopHost.OnRenderLoop_DisposeViewResources(EngineDevice engineDevice
RenderCapability.Tier >> 16 >= 2)
{
var handlerD3D9 = engineDevice.TryGetAdditionalDeviceHandler<DeviceHandlerD3D9>();
if (handlerD3D9?.Device != null)
if (handlerD3D9?.IsInitialized == true)
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<materialDesign:PackIcon Kind="ExpansionCard" />
<TextBlock Text="Graphics Device:" />
<ComboBox ItemsSource="{Binding ElementName=CtrlRoot, Path=CtrlRenderer.PossibleDevices}"
SelectedItem="{Binding ElementName=CtrlRoot, Path=CtrlRenderer.SelectedDevice, Mode=TwoWay}"
SelectedItem="{Binding ElementName=CtrlRoot, Path=CtrlRenderer.Device, Mode=TwoWay}"
VerticalAlignment="Center"
Width="200" />

Expand Down

0 comments on commit e7c3b8e

Please sign in to comment.