Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Closed

Description

@kkaefer

We should check that we're not creating any GL objects or calling any GL functions in general in anything but the Map thread.

Activity

  1. ljbade commented on Feb 27, 2015

    @ljbade
    Contributor

    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.

  2. kkaefer commented on Feb 27, 2015

    @kkaefer
    MemberAuthor

    FWIW, I don't think we're currently doing this, but we should do a proper review to avoid any undefined effects later on.

  3. ljbade commented on Feb 27, 2015

    @ljbade
    Contributor

    Another trick would be to add a thread ID check to the GL function error check wrappers.

  4. jfirebaugh commented on Mar 31, 2016

    @jfirebaugh
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions