From: Chia-I Wu Date: Tue, 27 Apr 2010 15:19:27 +0000 (+0800) Subject: glapi: Fix loading of old DRI drivers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1381880a8e0e0cdd96c4c725ff35a28b250b09d;p=mesa.git glapi: Fix loading of old DRI drivers. The removal of _glapi_noop_enable_warnings and _glapi_set_warning_func in e4f168a6f4911a096be97d2e83ef8ad9c5862ec0 prevents DRI drivers built before the commit from loading. Add stub versions of the functions to make them load again. --- diff --git a/src/mesa/glapi/glapi_nop.c b/src/mesa/glapi/glapi_nop.c index df9c5872842..4257b1fbce6 100644 --- a/src/mesa/glapi/glapi_nop.c +++ b/src/mesa/glapi/glapi_nop.c @@ -48,6 +48,26 @@ #include "glapi/glapi.h" + +/* + * These stubs are kept so that the old DRI drivers still load. + */ +PUBLIC void +_glapi_noop_enable_warnings(GLboolean enable); + +PUBLIC void +_glapi_set_warning_func(_glapi_proc func); + +void +_glapi_noop_enable_warnings(GLboolean enable) +{ +} + +void +_glapi_set_warning_func(_glapi_proc func) +{ +} + #ifdef DEBUG /**