roxy-cobewebgl 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/fallback.js +5 -1
package/package.json
CHANGED
package/src/fallback.js
CHANGED
|
@@ -421,7 +421,11 @@ function normalizeArcs(arcsData) {
|
|
|
421
421
|
*/
|
|
422
422
|
export async function createFallbackGlobe(canvas, config) {
|
|
423
423
|
const onError = config.onError || ((e) => console.error('[cobewebgl-fallback]', e));
|
|
424
|
-
const gl = canvas.getContext('webgl', {
|
|
424
|
+
const gl = canvas.getContext('webgl', {
|
|
425
|
+
antialias: false,
|
|
426
|
+
alpha: true,
|
|
427
|
+
premultipliedAlpha: false,
|
|
428
|
+
});
|
|
425
429
|
if (!gl) {
|
|
426
430
|
onError(new Error('WebGL 不可用'));
|
|
427
431
|
return null;
|