vo_opengl: fix feature detection

Fixes #1373.