diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-14 13:51:54 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-14 16:05:46 +0800 |
commit | c4a8ce7ffdf603c515b5202e2322e1b965f69f3a (patch) | |
tree | 9002ed93d3b9855e89be60ceb63426fc513eb875 /src/mesa/main | |
parent | 9199889374164c0541f3f7202c4dedb40a6b7458 (diff) |
es: Add support for GL_OES_EGL_image.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/dd.h | 13 | ||||
-rw-r--r-- | src/mesa/main/extensions.c | 3 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index afcab5bf2b..307ecd3d8b 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1070,6 +1070,19 @@ struct dd_function_table { GLfloat width, GLfloat height); /*@}*/ #endif +#if FEATURE_OES_EGL_image + /** + * \name GL_OES_EGL_image interface + */ + /*@{*/ + void (*EGLImageTargetRenderbufferStorage)(GLcontext *ctx, + struct gl_renderbuffer *rb, + GLvoid *image); + void (*EGLImageTargetTexture2D)(GLcontext *ctx, + struct gl_texture_object *texObj, + GLvoid *image); + /*@}*/ +#endif }; diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 7e289743ce..5b54c1cf8c 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -186,6 +186,9 @@ static const struct { #if FEATURE_OES_draw_texture { OFF, "GL_OES_draw_texture", F(OES_draw_texture) }, #endif /* FEATURE_OES_draw_texture */ +#if FEATURE_OES_EGL_image + { OFF, "GL_OES_EGL_image", F(OES_EGL_image) }, +#endif }; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index bebb3e56a6..6ce9ae1d6a 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2602,6 +2602,9 @@ struct gl_extensions #if FEATURE_OES_draw_texture GLboolean OES_draw_texture; #endif /* FEATURE_OES_draw_texture */ +#if FEATURE_OES_EGL_image + GLboolean OES_EGL_image; +#endif /** The extension string */ const GLubyte *String; }; |