]> git.sesse.net Git - movit/commit - init.cpp
Rewrite extension checking.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Apr 2014 21:11:30 +0000 (23:11 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Apr 2014 21:11:30 +0000 (23:11 +0200)
commitda8dfcce3a52f2de180ead1dd315f6e6cac5fef2
tree9637b1444a8e7e3339f194ae7988d6b927ddd845
parent233ddaa1c94e8c11ef73740b4d9c1aa31a97dd5c
Rewrite extension checking.

Two big changes:

 1. If you're missing some functionality, Movit will now tell you
    on stderr what you're missing. (We might suppress this later
    if it turns out that people want to init_movit() but are actually
    fine with it failing.)
 2. Use a table instead of repeated if-then logic, since this started
    to become a bit messy after we added OpenGL-version-equivalence
    checks.
init.cpp