fix OpenGL detection on Linux, and re-add TTF project to premake

This commit is contained in:
Erwin Coumans
2014-05-14 11:03:53 -07:00
parent 934df75ea6
commit 5c1fc2e3a4
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
function findOpenGL()
configuration{}
if os.is("Linux") then
if os.isdir("/usr/include") and os.isfile("/usr/include/GL/gl.h") then return true
end
return false
end
--assume OpenGL is available on Mac OSX, Windows etc