Skip to content

Commit

Permalink
FIX various warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
amerkoleci committed Feb 5, 2024
1 parent 7cbe71c commit fec43b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: ./global.json

Expand Down
2 changes: 2 additions & 0 deletions src/Direct3D11/10_Text/DrawTextApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
using Vortice.Framework;
using Vortice.Mathematics;

#nullable disable

internal class DrawTextApp : D3D11Application
{
private ID3D11Buffer _vertexBuffer;
Expand Down
2 changes: 1 addition & 1 deletion src/MediaFoundation/MediaEngineApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private static void OnPlaybackCallback(MediaEngineEvent playEvent, nuint param1,
s_eventReadyToPlay.Set();
break;
case MediaEngineEvent.TimeUpdate:
Console.Write(" {0}", TimeSpan.FromSeconds(s_mediaEngineEx.CurrentTime));
Console.Write(" {0}", TimeSpan.FromSeconds(s_mediaEngineEx!.CurrentTime));
break;
case MediaEngineEvent.Error:
case MediaEngineEvent.Abort:
Expand Down
2 changes: 1 addition & 1 deletion src/Vortice.Framework/D3D11Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ protected static ReadOnlyMemory<byte> CompileBytecode(string shaderName, string

protected unsafe (ID3D11Texture2D, ID3D11ShaderResourceView) LoadTexture(string filePath, int mipLevels = 0)
{
Image image = Image.FromFile(filePath);
Image image = Image.FromFile(filePath)!;

ID3D11Texture2D texture;
if (mipLevels == 0)
Expand Down
3 changes: 0 additions & 3 deletions src/Vortice.Framework/NativeMethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ IDC_SIZENS
IDC_SIZENWSE
IDC_SIZEWE

// MapVirtualKey uMapType constants that governs the translation used
MAPVK_VK_TO_VSC

// Parameters of WM_SIZE window messages
SIZE_MAXIMIZED
SIZE_MINIMIZED
Expand Down

0 comments on commit fec43b5

Please # to comment.