Skip to content

Set up on NixOS: Error creating WebGLContext #283

Open
@UlyssesZh

Description

@UlyssesZh

This was talked about in #277 without a satisfying solution.

nix-shell -p nodejs cairo gcc pkg-config xorg.libXi libGLU glew xvfb-run
npm i gl
xvfb-run -s '-ac -screen 0 1280x1024x24' node -e 'new (require("gl").WebGLRenderingContext)(1,1,true,true,false,false,true,false,false,false)'
/home/ulysses/temp/test-gl/node_modules/gl/src/javascript/webgl-rendering-context.js:98
class WebGLRenderingContext extends NativeWebGLRenderingContext {
^
Error: Error creating WebGLContext
    at new WebGLRenderingContext (/home/ulysses/temp/test-gl/node_modules/gl/src/javascript/webgl-rendering-context.js:98:1)

Has the same phenomenon as #262.

Wrap the node command with steam-run fixes this, but this can just be a temporary workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions