From 45054f9702bd07cd293c1f6c1317eae9530cc4da Mon Sep 17 00:00:00 2001 From: Eduardo Lima Mitev Date: Tue, 27 Oct 2015 15:58:59 +0100 Subject: mesa: Add a default QueryInternalFormat() function for drivers This is a fallback function for drivers not implementing ARB_internalformat_query2. Reviewed-by: Dave Airlie --- src/mesa/drivers/common/driverfuncs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/common') diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index 752aaf6c006..e6334d8969b 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -91,6 +91,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver) /* Texture functions */ driver->ChooseTextureFormat = _mesa_choose_tex_format; driver->QuerySamplesForFormat = _mesa_query_samples_for_format; + driver->QueryInternalFormat = _mesa_query_internal_format_default; driver->TexImage = _mesa_store_teximage; driver->TexSubImage = _mesa_store_texsubimage; driver->GetTexSubImage = _mesa_meta_GetTexSubImage; -- cgit v1.2.3