summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-10-18 20:23:00 +0200
committerMarek Olšák <[email protected]>2017-10-18 20:23:42 +0200
commit84f3afc2e122cb418573f1e9c61716520f9859c1 (patch)
treefd8f3bbc2b7f5eeb905a5699cf0f5bdec59f95d0 /src/egl/main/egldriver.c
parent2cb9ab53dd3ae6850a2611b01695f7449d24614d (diff)
Revert "egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}"
This reverts commit 8cb84c8477a57ed05d703669fee1770f31b76ae6. This fixes crashing shader-db/run.
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r--src/egl/main/egldriver.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 9d77cb6e97b..34a90ae5dc5 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -54,12 +54,8 @@ _eglGetDriver(void)
{
mtx_lock(&_eglModuleMutex);
- if (!_eglDriver) {
- _eglDriver = calloc(1, sizeof(*_eglDriver));
- if (!_eglDriver)
- return NULL;
- _eglInitDriver(_eglDriver);
- }
+ if (!_eglDriver)
+ _eglDriver = _eglBuiltInDriver();
mtx_unlock(&_eglModuleMutex);