Skip to content

Commit

Permalink
Add a run-on-mesa target for software rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
iku000888 authored and skeeto committed Jul 13, 2015
1 parent dfacc4e commit c2373b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -6,5 +6,8 @@ demo : demo.c gl3w/gl3w.c
run : demo
./$^

run-on-mesa : demo
LIBGL_ALWAYS_SOFTWARE=1 ./$^

clean :
$(RM) demo demo.exe
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -15,7 +15,9 @@ You'll need GLFW. On any Debian-based system:

If your GPU doesn't support OpenGL 3.3 and you're using Mesa 10.0+,
you can force software rendering with the environment variable
`LIBGL_ALWAYS_SOFTWARE=1`.
`LIBGL_ALWAYS_SOFTWARE=1`. The Makefile has a `run-on-mesa` target
to set this for you.


### Windows

Expand Down

0 comments on commit c2373b8

Please sign in to comment.