Skip to content

Call CreateWindow function failed on WSL2 #32

@yunnysunny

Description

@yunnysunny

I used canvas in WSL2 on win10.

When I call sdlcanvas.CreateWindow, it failed with error:

Error initializing SDL: No available video device

Then I switched to glfwcanvas.CreateWindow

it also emit an error:

2022/01/17 15:27:59 PlatformError: X11: The DISPLAY environment variable is missing
panic: NotInitialized: The GLFW library is not initialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions