Merge pull request #12029 from SamGondelman/webOverlay

Fix >20 web entities crash
This commit is contained in:
Brad Hefta-Gaub 2017-12-24 17:10:39 -08:00 committed by GitHub
commit 3d02955c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,10 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
withWriteLock([&] {
// This work must be done on the main thread
if (!hasWebSurface()) {
buildWebSurface(entity);
// If we couldn't create a new web surface, exit
if (!buildWebSurface(entity)) {
return;
}
}
if (_contextPosition != entity->getWorldPosition()) {