You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Don't create GL objects in the tile worker thread #926
Creation of GL objects now requires a GLObjectStore, which the worker thread does not have access to, so we can be fairly certain this does not happen.
Activity
ljbade commentedon Feb 27, 2015
Hmm, easiest way is it look at the attach/detach functions since any GL calls in a thread without a GL context bound will throw and exception.
kkaefer commentedon Feb 27, 2015
FWIW, I don't think we're currently doing this, but we should do a proper review to avoid any undefined effects later on.
ljbade commentedon Feb 27, 2015
Another trick would be to add a thread ID check to the GL function error check wrappers.
Join worker tasks before destroying TileData
jfirebaugh commentedon Mar 31, 2016
Creation of GL objects now requires a
GLObjectStore, which the worker thread does not have access to, so we can be fairly certain this does not happen.