Fix openglwindows example build on netbsd. (#3008)

not support for pthread_getconcurrency.
This commit is contained in:
David CARLIER 2020-08-27 14:55:50 +01:00 committed by GitHub
parent b6a9fd8e30
commit cbff4a0a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -566,8 +566,10 @@ void X11OpenGLWindow::enableOpenGL()
//Access pthreads as a workaround for a bug in Linux/Ubuntu
//See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642
#if !defined(__NetBSD__)
int i = pthread_getconcurrency();
printf("pthread_getconcurrency()=%d\n", i);
#endif
// const GLubyte* ext = glGetString(GL_EXTENSIONS);
// printf("GL_EXTENSIONS=%s\n", ext);