Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up on NixOS: Error creating WebGLContext #283

Open
UlyssesZh opened this issue Mar 26, 2024 · 0 comments
Open

Set up on NixOS: Error creating WebGLContext #283

UlyssesZh opened this issue Mar 26, 2024 · 0 comments

Comments

@UlyssesZh
Copy link

UlyssesZh commented Mar 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant