summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-20 10:20:25 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-20 10:20:25 -0600
commitfbd6e86b8f3c9bdeae7581d8d852b4df66e4b42c (patch)
treedbe969c5302ae4a076aa9f901b75581f29e8844b
parent8a75d109531755358708de5381eb912b7e2bf69c (diff)
egl: implment EGL_LARGEST_PBUFFER query
-rw-r--r--src/egl/main/egldriver.h2
-rw-r--r--src/egl/main/eglsurface.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index 7827ca3ae3..4066c6ec1d 100644
--- a/src/egl/main/egldriver.h
+++ b/src/egl/main/egldriver.h
@@ -39,6 +39,8 @@ struct _egl_driver
_EGLAPI API; /**< EGL API dispatch table */
_EGLExtensions Extensions;
+
+ int LargestPbuffer;
};
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index 796d62f2b9..3777049ca6 100644
--- a/src/egl/main/eglsurface.c
+++ b/src/egl/main/eglsurface.c
@@ -8,6 +8,7 @@
#include <string.h>
#include "eglcontext.h"
#include "eglconfig.h"
+#include "egldriver.h"
#include "eglglobals.h"
#include "eglhash.h"
#include "egllog.h"
@@ -319,7 +320,9 @@ _eglQuerySurface(_EGLDriver *drv, EGLDisplay dpy, EGLSurface surf,
case EGL_CONFIG_ID:
*value = GET_CONFIG_ATTRIB(surface->Config, EGL_CONFIG_ID);
return EGL_TRUE;
- /*XXX case EGL_LARGEST_PBUFFER:*/
+ case EGL_LARGEST_PBUFFER:
+ *value = drv->LargestPbuffer;
+ return EGL_TRUE;
case EGL_SURFACE_TYPE:
*value = surface->Type;
return EGL_TRUE;