[Mesa-dev] [PATCH 1/2] mesa: add DECL_GLAPIENTRY macro
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Jun 7 13:29:39 UTC 2017
To declare both errors and no errors GL prototypes.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mesa/main/glheader.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 3f2a923782..eeee1976ed 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -182,6 +182,9 @@ typedef void *GLeglImageOES;
#define GLX_DONT_CARE 0xFFFFFFFF
+#define DECL_GLAPIENTRY(ret, name, ...) \
+ ret GLAPIENTRY _mesa_##name##_no_error(__VA_ARGS__); \
+ ret GLAPIENTRY _mesa_##name(__VA_ARGS__);
#ifdef __cplusplus
}
--
2.13.0
More information about the mesa-dev
mailing list