Skip to content

Conversation

@alexanderGugel
Copy link
Member

The TextureManager is only being used by the WebGLRenderer, which always runs
in the UI thread. Therefore there is no need to check for the environment it
runs in. Besides that, the check would throw an error anyways when being
evaluated in a worker, since window wouldn't be defined. This check never
worked. If we really want to check if we're in a worker, we need to
check if "typeof window !== 'undefined".

@redwoodfavorite

The TextureManager is only being used by the WebGLRenderer, which always runs
in the UI thread. Therefore there is no need to check for the environment it
runs in. Besides that, the check would throw an error anyways when being
evaluated in a worker, since window wouldn't be defined. This check never
worked. If we really want to check if we're in a worker, we need to
check if "typeof window !== 'undefined".
@michaelobriena
Copy link
Member

Good call

@michaelobriena michaelobriena added this to the 0.6.0 milestone Jun 10, 2015
@michaelobriena
Copy link
Member

landed as 51d79f4

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants