diff options
author | Chia-I Wu <[email protected]> | 2010-04-06 17:46:17 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-04-06 18:01:41 +0800 |
commit | 2002e4d06e2627241cd4af88f65b54d2101ef151 (patch) | |
tree | 65d5d632bc8fc7a90de973b94580ebc7a7803dbf /src/mesa/main/teximage.c | |
parent | 0942ed45b370addf4edb310d4d0f9cd0c7b18fd0 (diff) |
mesa: Add OES_EGL_image to extension list.
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index d72e91b3a3b..edb80b18e98 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2457,6 +2457,12 @@ _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image) GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx); + if (!ctx->Extensions.OES_EGL_image) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glEGLImageTargetTexture2DOES(unsupported)"); + return; + } + if (target != GL_TEXTURE_2D) { _mesa_error(ctx, GL_INVALID_ENUM, "glEGLImageTargetTexture2D(target=%d)", target); |