diff options
author | Brian Paul <[email protected]> | 2013-11-16 13:55:50 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-18 08:56:35 -0700 |
commit | cadec45c3dce3979082f3cab4558b0f48b923128 (patch) | |
tree | 2191f5f19bcf85e31c4662916926bfc9b3fe7d0d /src/mesa/drivers/osmesa | |
parent | 7cf40c1cb33bdc78cf2297fa4dc5f249179b39a9 (diff) |
osmesa: add support for postprocess filters
Add new OSMesaPostprocess() function to allow using the gallium
postprocessing filters. This only works for OSMesa with gallium
drivers, not the legacy swrast OSMesa.
Bump OSMESA_MAJOR/MINOR_VERSION numbers to 10.0
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/drivers/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 97cd41c6031..834227ef590 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1129,6 +1129,7 @@ static struct name_function functions[] = { { "OSMesaGetColorBuffer", (OSMESAproc) OSMesaGetColorBuffer }, { "OSMesaGetProcAddress", (OSMESAproc) OSMesaGetProcAddress }, { "OSMesaColorClamp", (OSMESAproc) OSMesaColorClamp }, + { "OSMesaPostprocess" (OSMESAproc) OSMesaPostprocess }, { NULL, NULL } }; @@ -1159,6 +1160,16 @@ OSMesaColorClamp(GLboolean enable) } +GLAPI void GLAPIENTRY +OSMesaPostprocess(OSMesaContext osmesa, const char *filter, + unsigned enable_value) +{ + fprintf(stderr, + "OSMesaPostProcess() is only available with gallium drivers\n"); +} + + + /** * When GLX_INDIRECT_RENDERING is defined, some symbols are missing in * libglapi.a. We need to define them here. |