From 380991cb657dec71d754d5221ffd55360864358d Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Mon, 16 May 2005 16:50:38 +0000 Subject: [PATCH] Implement query of surface type. --- src/egl/main/eglsurface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index b9902c7af00..41d091735a4 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; -- 2.30.2