Fixed support for OCL without X running. This allows users to directly use /dev/dri...
authorhlthantr <devnull@localhost>
Tue, 30 Aug 2011 00:54:39 +0000 (00:54 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Aug 2012 23:14:49 +0000 (16:14 -0700)
src/intel/intel_driver.c

index 2da8b15..a0acf59 100644 (file)
@@ -166,8 +166,10 @@ intel_driver_close(intel_driver_t *intel)
 {
   if(intel->dri_ctx) dri_state_release(intel->dri_ctx);
   if(intel->x11_display) XCloseDisplay(intel->x11_display);
+  if(intel->fd) close(intel->fd);
   intel->dri_ctx = NULL;
   intel->x11_display = NULL;
+  intel->fd = NULL;
 }
 
 LOCAL int