summaryrefslogtreecommitdiff
path: root/src/egl/main/eglsurface.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-16 16:50:38 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-16 16:50:38 +0000
commit380991cb657dec71d754d5221ffd55360864358d (patch)
treef94c8ca192e5a6e1fa28eb8f1c0a918a4f92e1f5 /src/egl/main/eglsurface.c
parent3e8001a465ae67dbbbd1262115b71e7d4ef4c281 (diff)
Implement query of surface type.
Diffstat (limited to 'src/egl/main/eglsurface.c')
-rw-r--r--src/egl/main/eglsurface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index b9902c7af0..41d091735a 100644
--- a/src/egl/main/eglsurface.c
+++ b/src/egl/main/eglsurface.c
@@ -126,6 +126,9 @@ _eglQuerySurface(_EGLDriver *drv, EGLDisplay dpy, EGLSurface surf, EGLint attrib
if (surface->Type == EGL_PBUFFER_BIT)
*value = surface->MipmapLevel;
return EGL_TRUE;
+ case EGL_SURFACE_TYPE:
+ *value = surface->Type;
+ return EGL_TRUE;
default:
_eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface");
return EGL_FALSE;