diff options
author | Jakob Bornecrantz <[email protected]> | 2008-05-28 12:27:52 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2008-05-28 12:27:52 +0200 |
commit | 5d90f97f48f8ba231d52bb1a4758dd37f81ec8d6 (patch) | |
tree | d109545d8d519cb7b07ef46ff568f93c33de45d0 /src/gallium/winsys/egl_drm | |
parent | ae3795a968f07fc150d4c34aa1a9cd067f33b914 (diff) |
i915: Don't segfault on buffer allocation error
Diffstat (limited to 'src/gallium/winsys/egl_drm')
-rw-r--r-- | src/gallium/winsys/egl_drm/intel/intel_egl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/egl_drm/intel/intel_egl.c b/src/gallium/winsys/egl_drm/intel/intel_egl.c index 98dbe26376f..809371fdeb1 100644 --- a/src/gallium/winsys/egl_drm/intel/intel_egl.c +++ b/src/gallium/winsys/egl_drm/intel/intel_egl.c @@ -479,12 +479,13 @@ drm_show_screen_surface_mesa(_EGLDriver *drv, EGLDisplay dpy, DRM_BO_FLAG_NO_EVICT, DRM_BO_HINT_DONT_FENCE, &scrn->buffer); - prettyColors(drm_drv->device->drmFD, scrn->buffer.handle, pitch); if (ret) { printf("failed to create framebuffer (ret %d)\n", ret); return EGL_FALSE; } + prettyColors(drm_drv->device->drmFD, scrn->buffer.handle, pitch); + ret = drmModeAddFB(drm_drv->device->drmFD, mode->Width, mode->Height, 32, 32, pitch, scrn->buffer.handle, |