egl: implment EGL_LARGEST_PBUFFER query

This commit is contained in:
Brian Paul 2008-06-20 10:20:25 -06:00
parent 8a75d10953
commit fbd6e86b8f
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,8 @@ struct _egl_driver
_EGLAPI API; /**< EGL API dispatch table */
_EGLExtensions Extensions;
int LargestPbuffer;
};

View File

@ -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;