Last active
October 7, 2021 21:01
-
-
Save pemd-sys/1977892f8ebbd8a9870284f5d570112d to your computer and use it in GitHub Desktop.
Revisions
-
pemd-sys revised this gist
Oct 7, 2021 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,3 +35,8 @@ export MESA_GL_VERSION_OVERRIDE=3.3 ./app_name ``` Try the process with the following code https://github.com/medhakant/BoucingBallAnimation remember to change the opengl version from 4.5 to 3.3 in the c++ code -
pemd-sys revised this gist
Oct 3, 2021 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,8 +20,18 @@ OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 ``` So the supported opengl version is only 2.1, but usually to use opengl core profile we need to use version >=3.3. So mesa recommends using the following line instead while executing an opengl program. https://superuser.com/questions/1522545/run-application-requiring-opengl-3-3-inside-virtualbox-virtual-machine-windows ```sh LIBGL_ALWAYS_SOFTWARE=true GALLIUM_DRIVER=llvmpipe ./app_name ``` You could also use the following trick reported to work with WSL2. https://stackoverflow.com/questions/52592309/0110-error-glsl-3-30-is-not-supported-ubuntu-18-04-c ```sh export MESA_GL_VERSION_OVERRIDE=3.3 ./app_name ``` -
pemd-sys revised this gist
Oct 3, 2021 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,19 +4,24 @@ Sometimes, opengl codes do not run in virtual box due to different opengl implem glxinfo | grep version ``` which gives ```sh server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 0.0 Max compat profile version: 2.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 2.0 OpenGL version string: 2.1 Mesa 21.0.3 OpenGL shading language version string: 1.20 OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.3 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 ``` So the supported opengl version is only 2.1, but usually to use opengl core profile we need to use version >=3.3. So mesa recommends using the following line instead while executing an opengl program ```sh LIBGL_ALWAYS_SOFTWARE=true GALLIUM_DRIVER=llvmpipe ./app_name ``` -
pemd-sys created this gist
Oct 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # Running opengl code in virtual box Sometimes, opengl codes do not run in virtual box due to different opengl implementation. for example in my system we can find out the opengl version by running the following command ```sh glxinfo | grep version ``` which gives ```sh server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 3.3 Max compat profile version: 3.3 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 2.0 OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.0.3 OpenGL core profile shading language version string: 1.20 OpenGL version string: 3.3 (Compatibility Profile) Mesa 21.0.3 OpenGL shading language version string: 1.20 OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.3 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 ```