Litty
Litty

Reputation: 1876

Mysteriously invalid OpenGL context in Electron

I've created an C++ & OpenGL animation engine backed by GLX and GLEW, wrapped in a Node.js module via SWIG. The goal is to use the engine inside an Electron app in the browser process.

The engine appears quite stable. It's multi-context aware, binding the correct OpenGL context before all relevant operations, checking for errors after almost every possible operation, and backed by a rather large testing suite.

Outside of an electron app everything is working just fine. Mysteriously however, simple scripts that would normally work outside of Electron are failing inside an Electron app in either browser or renderer process.

Symptoms

Facts

In this order:

I'm pretty baffled by this. Everything I'm checking appears to suggest the context was created correctly but it otherwise appears corrupted or dysfunctional.

What's going on? What else can I check?

Upvotes: 12

Views: 2327

Answers (1)

mikep
mikep

Reputation: 3905

https://github.com/electron/electron/issues/8848 reports exactly the issue of a null GL_VERSION and blames Electron version 1.6.1. The workaround was to roll back to version 1.4.15.

Upvotes: 3

Related Questions