Skip to content

Commit

Permalink
Fix warnings about null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny committed Feb 19, 2021
1 parent e621415 commit c9b9311
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ private static double GetFeatureLevel()
out deviceOut,
out featureLevelRef,
out immediateContextOut);
if (deviceOut != null) Marshal.Release(deviceOut);
if (immediateContextOut != null) Marshal.Release(immediateContextOut);
if (deviceOut != IntPtr.Zero) Marshal.Release(deviceOut);
if (immediateContextOut != IntPtr.Zero) Marshal.Release(immediateContextOut);
if (featureLevelRef <= D3D_FEATURE_LEVEL_9_1) return 9.1;
if (featureLevelRef <= D3D_FEATURE_LEVEL_9_2) return 9.2;
if (featureLevelRef <= D3D_FEATURE_LEVEL_9_3) return 9.3;
Expand Down

0 comments on commit c9b9311

Please # to comment.