|
@@ -503,7 +503,7 @@ static int qemu_egl_init_dpy(EGLNativeDisplayType dpy,
|
|
EGLint major, minor;
|
|
EGLint major, minor;
|
|
EGLBoolean b;
|
|
EGLBoolean b;
|
|
EGLint n;
|
|
EGLint n;
|
|
- bool gles = (mode == DISPLAYGL_MODE_ES);
|
|
|
|
|
|
+ bool gles = (mode == DISPLAY_GL_MODE_ES);
|
|
|
|
|
|
qemu_egl_display = qemu_egl_get_display(dpy, platform);
|
|
qemu_egl_display = qemu_egl_get_display(dpy, platform);
|
|
if (qemu_egl_display == EGL_NO_DISPLAY) {
|
|
if (qemu_egl_display == EGL_NO_DISPLAY) {
|
|
@@ -533,7 +533,7 @@ static int qemu_egl_init_dpy(EGLNativeDisplayType dpy,
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
- qemu_egl_mode = gles ? DISPLAYGL_MODE_ES : DISPLAYGL_MODE_CORE;
|
|
|
|
|
|
+ qemu_egl_mode = gles ? DISPLAY_GL_MODE_ES : DISPLAY_GL_MODE_CORE;
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -564,8 +564,8 @@ int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy, DisplayGLMode mode)
|
|
int qemu_egl_init_dpy_win32(EGLNativeDisplayType dpy, DisplayGLMode mode)
|
|
int qemu_egl_init_dpy_win32(EGLNativeDisplayType dpy, DisplayGLMode mode)
|
|
{
|
|
{
|
|
/* prefer GL ES, as that's what ANGLE supports */
|
|
/* prefer GL ES, as that's what ANGLE supports */
|
|
- if (mode == DISPLAYGL_MODE_ON) {
|
|
|
|
- mode = DISPLAYGL_MODE_ES;
|
|
|
|
|
|
+ if (mode == DISPLAY_GL_MODE_ON) {
|
|
|
|
+ mode = DISPLAY_GL_MODE_ES;
|
|
}
|
|
}
|
|
|
|
|
|
if (qemu_egl_init_dpy(dpy, 0, mode) < 0) {
|
|
if (qemu_egl_init_dpy(dpy, 0, mode) < 0) {
|
|
@@ -618,7 +618,7 @@ EGLContext qemu_egl_init_ctx(void)
|
|
EGL_CONTEXT_CLIENT_VERSION, 2,
|
|
EGL_CONTEXT_CLIENT_VERSION, 2,
|
|
EGL_NONE
|
|
EGL_NONE
|
|
};
|
|
};
|
|
- bool gles = (qemu_egl_mode == DISPLAYGL_MODE_ES);
|
|
|
|
|
|
+ bool gles = (qemu_egl_mode == DISPLAY_GL_MODE_ES);
|
|
EGLContext ectx;
|
|
EGLContext ectx;
|
|
EGLBoolean b;
|
|
EGLBoolean b;
|
|
|
|
|
|
@@ -642,7 +642,7 @@ bool egl_init(const char *rendernode, DisplayGLMode mode, Error **errp)
|
|
{
|
|
{
|
|
ERRP_GUARD();
|
|
ERRP_GUARD();
|
|
|
|
|
|
- if (mode == DISPLAYGL_MODE_OFF) {
|
|
|
|
|
|
+ if (mode == DISPLAY_GL_MODE_OFF) {
|
|
error_setg(errp, "egl: turning off GL doesn't make sense");
|
|
error_setg(errp, "egl: turning off GL doesn't make sense");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|