Skip to content

Commit f87522c

Browse files
committed
Fix d3d11 sdl3 example
1 parent 5413fac commit f87522c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
odin check raylib/ports/core/core_basic_window.odin -file $FLAGS
8080
8181
odin check directx/d3d11_minimal_sdl2 -target:windows_amd64 $FLAGS
82+
odin check directx/d3d11_minimal_sdl3 -target:windows_amd64 $FLAGS
8283
8384
odin check opengl/minimal_sdl2 $FLAGS
8485

directx/d3d11_minimal_sdl3/d3d11_in_odin.odin

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import DXGI "vendor:directx/dxgi"
55
import D3D "vendor:directx/d3d_compiler"
66
import SDL "vendor:sdl3"
77
import glm "core:math/linalg/glsl"
8-
import fmt "core:fmt"
98
// Based off https://gist.github.com/d7samurai/261c69490cce0620d0bfc93003cd1052
109

1110
main :: proc() {
@@ -19,7 +18,7 @@ main :: proc() {
1918
)
2019
defer SDL.DestroyWindow(window)
2120

22-
native_window := transmute(DXGI.HWND)SDL.GetPointerProperty(SDL.GetWindowProperties(window), SDL.PROP_WINDOW_WIN32_HWND_POINTER, nil)
21+
native_window := DXGI.HWND(SDL.GetPointerProperty(SDL.GetWindowProperties(window), SDL.PROP_WINDOW_WIN32_HWND_POINTER, nil))
2322

2423
feature_levels := [?]D3D11.FEATURE_LEVEL{._11_0}
2524

0 commit comments

Comments
 (0)