{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/8848","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/8848/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/8848/comments","events_url":"https://api.github.com/repos/electron/electron/issues/8848/events","html_url":"https://github.com/electron/electron/issues/8848","id":212264944,"number":8848,"title":"GL Context Issues in addon","user":{"login":"tyduptyler13","id":1331209,"avatar_url":"https://avatars0.githubusercontent.com/u/1331209?v=3","gravatar_id":"","url":"https://api.github.com/users/tyduptyler13","html_url":"https://github.com/tyduptyler13","followers_url":"https://api.github.com/users/tyduptyler13/followers","following_url":"https://api.github.com/users/tyduptyler13/following{/other_user}","gists_url":"https://api.github.com/users/tyduptyler13/gists{/gist_id}","starred_url":"https://api.github.com/users/tyduptyler13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyduptyler13/subscriptions","organizations_url":"https://api.github.com/users/tyduptyler13/orgs","repos_url":"https://api.github.com/users/tyduptyler13/repos","events_url":"https://api.github.com/users/tyduptyler13/events{/privacy}","received_events_url":"https://api.github.com/users/tyduptyler13/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-06T22:06:33Z","updated_at":"2017-06-20T00:21:01Z","closed_at":"2017-06-13T09:55:34Z","body":"* Electron version: 1.6.1\r\n* Operating system: Linux\r\n\r\n### Expected behavior\r\n\r\nI have created a nodejs addon that works inside electron as well. When running against nodejs I can\r\ncreate a GLFW window with a GLES2 context and use it as expected. When running against electron, a GLFW window is created, the context briefly exists, then as soon as I call a GL function, it behaves as if the context is gone. glGetString(GL_VERSION) returns null immediately after creating the window, and after explicitly making the context current. glGetError also returns 0.\r\n\r\nThis worked previously just fine in v1.4.15.\r\n\r\n### How to reproduce\r\n\r\nThis requires that GLFW3, Electron, and node-gyp are installed on the system.\r\n\r\nThe build script is also hard coded to build for electron 1.6.1.\r\n\r\n```\r\ngit clone https://github.com/MyUPlay/MyEngine\r\ncd MyEngine\r\nmake -j8\r\nelectron test/core/BasicExample-electron.js\r\n```\r\n\r\nTo prove the code works otherwise (from inside the repo):\r\n```\r\nNODEBUILD=1 make -j8\r\nnode test/core/BasicExample.js\r\n```\r\nThe js has to be different, obviously, so that it doesn't call electron to do the UI, which should be the only difference.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/309608884","html_url":"https://github.com/electron/electron/issues/8848#issuecomment-309608884","issue_url":"https://api.github.com/repos/electron/electron/issues/8848","id":309608884,"user":{"login":"tyduptyler13","id":1331209,"avatar_url":"https://avatars0.githubusercontent.com/u/1331209?v=3","gravatar_id":"","url":"https://api.github.com/users/tyduptyler13","html_url":"https://github.com/tyduptyler13","followers_url":"https://api.github.com/users/tyduptyler13/followers","following_url":"https://api.github.com/users/tyduptyler13/following{/other_user}","gists_url":"https://api.github.com/users/tyduptyler13/gists{/gist_id}","starred_url":"https://api.github.com/users/tyduptyler13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyduptyler13/subscriptions","organizations_url":"https://api.github.com/users/tyduptyler13/orgs","repos_url":"https://api.github.com/users/tyduptyler13/repos","events_url":"https://api.github.com/users/tyduptyler13/events{/privacy}","received_events_url":"https://api.github.com/users/tyduptyler13/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T00:21:01Z","updated_at":"2017-06-20T00:21:01Z","body":"I decided to solve this using IPC instead. Its not the prettiest solution, but it will work and will mean I can change dependencies on a whim."}}
{"actor":{"display_login":"tyduptyler13"}}