summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglimage.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-31 17:34:02 +0800
committerChia-I Wu <[email protected]>2010-01-31 22:20:42 +0800
commit0135e5d6c83add5e539492a4899504e33f3f2434 (patch)
treec95f8a26c519ff15fb9a92e160c0d149a6eb0ee0 /src/egl/main/eglimage.c
parentf8f2520e88cecf21aee5023423185deea7e44b23 (diff)
egl: Add support for more EGLImage extensions to EGL core.
Add support EGL_KHR_vg_parent_image and EGL_KHR_gl_*. This is as simple as adding some flags that can be enabled. Individual drivers need to implement the extensions before enbaling the flags.
Diffstat (limited to 'src/egl/main/eglimage.c')
-rw-r--r--src/egl/main/eglimage.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
index e7a293b3743..5732ef35ecd 100644
--- a/src/egl/main/eglimage.c
+++ b/src/egl/main/eglimage.c
@@ -28,8 +28,14 @@ _eglParseImageAttribList(_EGLImage *img, const EGLint *attrib_list)
case EGL_IMAGE_PRESERVED_KHR:
img->Preserved = val;
break;
+ case EGL_GL_TEXTURE_LEVEL_KHR:
+ img->GLTextureLevel = val;
+ break;
+ case EGL_GL_TEXTURE_ZOFFSET_KHR:
+ img->GLTextureZOffset = val;
+ break;
default:
- err = EGL_BAD_ATTRIBUTE;
+ /* unknown attrs are ignored */
break;
}
@@ -52,6 +58,8 @@ _eglInitImage(_EGLImage *img, _EGLDisplay *dpy, const EGLint *attrib_list)
img->Resource.Display = dpy;
img->Preserved = EGL_FALSE;
+ img->GLTextureLevel = 0;
+ img->GLTextureZOffset = 0;
err = _eglParseImageAttribList(img, attrib_list);
if (err != EGL_SUCCESS)