Skip to content

Commit

Permalink
Merge pull request #11 from martinRenou/create_context_lazily
Browse files Browse the repository at this point in the history
Create webgl context lazily
  • Loading branch information
martinRenou authored Oct 21, 2021
2 parents cb5a420 + d5e1333 commit a86a915
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export function resizeRenderer(
}

export function initializeBqplotFigure(figure: Figure) {
if (!figure.needsWebGLContext) {
figure.needsWebGLContext = true;
}

if (!figure.extras.webGLRenderer) {
const ext = figure.extras;

Expand Down

0 comments on commit a86a915

Please sign in to comment.