mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
progs/egl: Check EGL_MESA_screen_surface is supported in demo2.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
e0b2848f4f
commit
28c2190336
1 changed files with 6 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <EGL/egl.h>
|
||||
|
|
@ -129,6 +130,11 @@ main(int argc, char *argv[])
|
|||
|
||||
printf("EGL version = %d.%d\n", maj, min);
|
||||
printf("EGL_VENDOR = %s\n", eglQueryString(d, EGL_VENDOR));
|
||||
if (!strstr(eglQueryString(d, EGL_EXTENSIONS),
|
||||
"EGL_MESA_screen_surface")) {
|
||||
printf("EGL_MESA_screen_surface is not supported\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
eglGetConfigs(d, configs, 10, &numConfigs);
|
||||
printf("Got %d EGL configs:\n", numConfigs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue