glamor_egl: add info message about context API
It is useful to know on what context we are running, and we need to show it into xorg.log Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Konstantin <ria.freelander@gmail.com>
This commit is contained in:
parent
a44a4b0d4d
commit
c014f33b43
|
@ -1000,6 +1000,10 @@ glamor_egl_try_big_gl_api(ScrnInfoPtr scrn)
|
||||||
eglDestroyContext(glamor_egl->display, glamor_egl->context);
|
eglDestroyContext(glamor_egl->display, glamor_egl->context);
|
||||||
glamor_egl->context = EGL_NO_CONTEXT;
|
glamor_egl->context = EGL_NO_CONTEXT;
|
||||||
}
|
}
|
||||||
|
xf86DrvMsg(scrn->scrnIndex, X_INFO,
|
||||||
|
"glamor: Using OpenGL %d.%d context.\n",
|
||||||
|
epoxy_gl_version() / 10,
|
||||||
|
epoxy_gl_version() % 10);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -1031,6 +1035,10 @@ glamor_egl_try_gles_api(ScrnInfoPtr scrn)
|
||||||
"Failed to make GLES context current\n");
|
"Failed to make GLES context current\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
xf86DrvMsg(scrn->scrnIndex, X_INFO,
|
||||||
|
"glamor: Using OpenGL ES %d.%d context.\n",
|
||||||
|
epoxy_gl_version() / 10,
|
||||||
|
epoxy_gl_version() % 10);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue