Skip to content

Commit

Permalink
Fix example compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Feb 26, 2024
1 parent 0de0a2c commit 7bc9fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/utils/dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"libs-linux": [
"X11"
],
"libs-windows": ["glfw3", "gdi32"],
"libs-windows": ["glfw3", "gdi32", "opengl32", "msvcrt"],
"lflags-posix": ["$UTILS_PACKAGE_DIR/subprojects/glfw/src/libglfw3.a"],
"lflags-windows": ["/LIBPATH:$UTILS_PACKAGE_DIR/subprojects/glfw/src"]
}
2 changes: 1 addition & 1 deletion examples/utils/source/examples/window.d
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ abstract class Window {
);
version (Windows) {
import core.sys.windows.windows : GetModuleHandleA;
surface = Surface.fromWindowsHwnd(instance, GetModuleHandleA(null), glfwGetWin32Window(window));
surface = Surface.fromWindowsHwnd(this.gpu, GetModuleHandleA(null), glfwGetWin32Window(_window));
}
assert(surface.valid, "Could not create native surface");

Expand Down

0 comments on commit 7bc9fb2

Please sign in to comment.