stackgl / headless-gl

🎃 Windowless WebGL for node.js
1.73k stars 166 forks source link

get a black image in centos7.9 #249

Closed vvshuai closed 1 year ago

vvshuai commented 1 year ago

I had no problems running the code on a Windows 10 system, but when I ran the same code on a CentOS 7 without graphics, I got a black image and no error messages. I have confirmed that Mesa, X11, and Xvfb are installed, and I am using Xvfb to run the code. env:

vvshuai commented 1 year ago

On a headless Linux machine,I found that the GL_OES_texture_float extension did not work, which caused a failure when using gl.Float, but I couldn't locate the problem.

vvshuai commented 1 year ago

I was able to run it successfully on the Debian, but it failed on CentOS 7.9. I suspect it is due to the version issue of Mesa. GL_OES_texture_float is not supported on OpenGL ES 2.0 Mesa 18.3.4. I will close this issue.

dhritzkiv commented 1 year ago

Sorry I didn't get to your issue sooner. I am glad you figured it out yourself, and have updated the thread. Thank you.