09-12-2015, 06:26 PM
Code:
minor_gl_version() ->
Major = 2,
Minor = 1,
Req = {Major,Minor,0},
case ets:lookup(wings_gl_ext, version) of
[{_,VerTuple}] when VerTuple < Req ->
fatal("Wings3D requires OpenGL ~p.~p or higher.",
[Minor,Major]);
_ ->
ok
end.