diff options
| author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-08 11:01:19 +0800 |
|---|---|---|
| committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-12 20:55:57 +0800 |
| commit | 6fcf6a5a7fe631af7c0dab67455e46a8ba898583 (patch) | |
| tree | 67789630ec03e862ac04eb903ec72c4ca9e7c24d /src/mesa/main/texgen.c | |
| parent | b04d58c0b1bd66ea59c5277a13e83e4306a6d740 (diff) | |
mesa/main: Make FEATURE_texgen follow feature conventions.
As shown in mfeatures.h, this allows users of texgen.h to work without
knowing if the feature is available.
Diffstat (limited to 'src/mesa/main/texgen.c')
| -rw-r--r-- | src/mesa/main/texgen.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/main/texgen.c b/src/mesa/main/texgen.c index e3feb024c3..8c98ee3602 100644 --- a/src/mesa/main/texgen.c +++ b/src/mesa/main/texgen.c @@ -36,6 +36,10 @@ #include "main/macros.h" #include "main/texgen.h" #include "math/m_matrix.h" +#include "glapi/dispatch.h" + + +#if FEATURE_texgen /** @@ -337,3 +341,19 @@ _mesa_GetTexGeniv( GLenum coord, GLenum pname, GLint *params ) } +void +_mesa_init_texgen_dispatch(struct _glapi_table *disp) +{ + SET_GetTexGendv(disp, _mesa_GetTexGendv); + SET_GetTexGenfv(disp, _mesa_GetTexGenfv); + SET_GetTexGeniv(disp, _mesa_GetTexGeniv); + SET_TexGend(disp, _mesa_TexGend); + SET_TexGendv(disp, _mesa_TexGendv); + SET_TexGenf(disp, _mesa_TexGenf); + SET_TexGenfv(disp, _mesa_TexGenfv); + SET_TexGeni(disp, _mesa_TexGeni); + SET_TexGeniv(disp, _mesa_TexGeniv); +} + + +#endif /* FEATURE_texgen */ |
