mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
egl: minor tweaks
This commit is contained in:
parent
da7b3d294b
commit
f6bb2f87b9
1 changed files with 4 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ _EGLDriver *
|
|||
_eglMain(_EGLDisplay *dpy, const char *args)
|
||||
{
|
||||
#if 1
|
||||
const int card = atoi(args);
|
||||
const int card = args ? atoi(args) : 0;
|
||||
_EGLDriver *driver = NULL;
|
||||
char driverName[1000];
|
||||
|
||||
|
|
@ -1086,8 +1086,10 @@ _eglDRICreateDisplay(driDisplay *dpy, __DRIframebuffer *framebuffer)
|
|||
api_ver,
|
||||
& interface_methods,
|
||||
NULL);
|
||||
if (!dpy->driScreen.private)
|
||||
if (!dpy->driScreen.private) {
|
||||
_eglLog(_EGL_WARNING, "egldri.c: DRI create new screen failed");
|
||||
return EGL_FALSE;
|
||||
}
|
||||
|
||||
DRM_UNLOCK( dpy->drmFD, dpy->pSAREA, dpy->serverContext );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue