chore: fix crash on ARM during rendering
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
parent
c9aa26a6de
commit
49445d89b7
1 changed files with 12 additions and 0 deletions
|
|
@ -1,5 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
// SECTION START
|
||||
//
|
||||
// The order of the two imports below is important.
|
||||
// For an unknown reason, if the order is reversed, rendering can crash.
|
||||
// This happens on ARM:
|
||||
// > terminate called after throwing an instance of 'std::runtime_error'
|
||||
// > what(): Cannot read GLX extensions.
|
||||
import 'canvas';
|
||||
import '@maplibre/maplibre-gl-native';
|
||||
//
|
||||
// SECTION END
|
||||
|
||||
import advancedPool from 'advanced-pool';
|
||||
import fs from 'node:fs';
|
||||
import path from 'path';
|
||||
|
|
|
|||
Loading…
Reference in a new issue