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/fbobject.c | |
parent | 0942ed45b370addf4edb310d4d0f9cd0c7b18fd0 (diff) |
mesa: Add OES_EGL_image to extension list.
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index e3e006bb948..8d442466187 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1020,6 +1020,12 @@ _mesa_EGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image) GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx); + if (!ctx->Extensions.OES_EGL_image) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glEGLImageTargetRenderbufferStorageOES(unsupported)"); + return; + } + if (target != GL_RENDERBUFFER) { _mesa_error(ctx, GL_INVALID_ENUM, "EGLImageTargetRenderbufferStorageOES"); return; |