diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c index e276c58e7..6e30622a5 100644 --- a/cogl/cogl-texture-rectangle.c +++ b/cogl/cogl-texture-rectangle.c @@ -389,7 +389,8 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx, /* Obtain texture parameters */ #ifdef HAVE_COGL_GL - if (ctx->driver == COGL_DRIVER_GL) + if ((ctx->private_feature_flags & + COGL_PRIVATE_FEATURE_QUERY_TEXTURE_PARAMETERS)) { GLint val;