--- video/out/opengl/common.c.orig
+++ video/out/opengl/common.c
@@ -275,7 +275,6 @@ static const struct gl_functions gl_func
             {0}
         },
     },
-#endif
     {
         .ver_core = 330,
         .extension = "GL_ARB_timer_query",
@@ -309,6 +308,7 @@ static const struct gl_functions gl_func
             {0}
         },
     },
+#endif
     {
         .ver_core = 430,
         .ver_es_core = 300,
