diff --git a/examples/utils/dub.json b/examples/utils/dub.json index a02a636..fef3297 100644 --- a/examples/utils/dub.json +++ b/examples/utils/dub.json @@ -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"] } diff --git a/examples/utils/source/examples/window.d b/examples/utils/source/examples/window.d index bc1bbe1..d8c97da 100644 --- a/examples/utils/source/examples/window.d +++ b/examples/utils/source/examples/window.d @@ -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");