Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(982)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2407753002: Fix crash from state management cleanup (Closed)
Patch Set: Fix state restore missed Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index 3d352b67a928bbbc0d3d3414aab1d80bae729430..b85a90463b208335ed48c8e0b836785d47e5e5df 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -3538,7 +3538,6 @@ void WebGL2RenderingContextBase::deleteFramebuffer(
m_readFramebufferBinding = nullptr;
}
if (target) {
- drawingBuffer()->setFramebufferBinding(target, 0);
// Have to call drawingBuffer()->bind() here to bind back to internal fbo.
drawingBuffer()->bind(target);
}
@@ -4511,4 +4510,12 @@ WebGL2RenderingContextBase::getUnpackPixelStoreParams(
return params;
}
+void WebGL2RenderingContextBase::
+ DrawingBufferClientRestorePixelUnpackBufferBinding() {
+ if (!contextGL())
+ return;
+ contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER,
+ objectOrZero(m_boundPixelUnpackBuffer.get()));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698