projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811c59c
)
Fixed support for OCL without X running. This allows users to directly use /dev/dri...
author
hlthantr
<devnull@localhost>
Tue, 30 Aug 2011 00:54:39 +0000
(
00:54
+0000)
committer
Keith Packard
<keithp@keithp.com>
Fri, 10 Aug 2012 23:14:49 +0000
(16:14 -0700)
src/intel/intel_driver.c
patch
|
blob
|
history
diff --git
a/src/intel/intel_driver.c
b/src/intel/intel_driver.c
index
2da8b15
..
a0acf59
100644
(file)
--- a/
src/intel/intel_driver.c
+++ b/
src/intel/intel_driver.c
@@
-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