Skip to content

Commit 6ba89b2

Browse files
committed
[AccCanvas] Wait on GLFence only if supported
1 parent b26bc06 commit 6ba89b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ void ImageBufferSkiaAcceleratedBackend::swapBuffersIfNeeded()
259259
IntSize textureSize(info.width(), info.height());
260260
if (!m_texture.back)
261261
m_texture.back = BitmapTexture::create(textureSize, BitmapTexture::Flags::SupportsAlpha);
262-
fence->serverWait();
262+
if (fence)
263+
fence->serverWait();
263264
m_texture.back->copyFromExternalTexture(textureInfo.fID);
264265
fence = GLFence::create();
265266
std::swap(m_texture.back, m_texture.front);

0 commit comments

Comments
 (0)