diff --git a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c index ef962ae2e..944901861 100644 --- a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c +++ b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c @@ -475,8 +475,6 @@ _cogl_driver_update_features (CoglContext *ctx, (void *) cogl_renderer_get_proc_address (ctx->display->renderer, "glGetIntegerv"); - gl_extensions = _cogl_context_get_gl_extensions (ctx); - if (!check_gl_version (ctx, error)) return FALSE; @@ -487,6 +485,8 @@ _cogl_driver_update_features (CoglContext *ctx, if (!check_glsl_version (ctx, error)) return FALSE; + gl_extensions = _cogl_context_get_gl_extensions (ctx); + if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_WINSYS))) { g_autofree char *all_extensions = g_strjoinv (" ", gl_extensions); diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c index f44531db6..86cbf7ecb 100644 --- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c @@ -699,8 +699,6 @@ _cogl_driver_update_features (CoglContext *context, (void *) cogl_renderer_get_proc_address (context->display->renderer, "glGetStringi"); - gl_extensions = _cogl_context_get_gl_extensions (context); - if (!check_gl_version (context, error)) return FALSE; @@ -711,6 +709,8 @@ _cogl_driver_update_features (CoglContext *context, if (!check_glsl_version (context, error)) return FALSE; + gl_extensions = _cogl_context_get_gl_extensions (context); + if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_WINSYS))) { g_autofree char *all_extensions = g_strjoinv (" ", gl_extensions);