projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8001a
)
Implement query of surface type.
author
Jon Smirl
<jonsmirl@gmail.com>
Mon, 16 May 2005 16:50:38 +0000
(16:50 +0000)
committer
Jon Smirl
<jonsmirl@gmail.com>
Mon, 16 May 2005 16:50:38 +0000
(16:50 +0000)
src/egl/main/eglsurface.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglsurface.c
b/src/egl/main/eglsurface.c
index b9902c7af0074412e033ca60f46779acd68b775b..41d091735a475955b7996b35e8c129ea938aebae 100644
(file)
--- 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;