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

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

Issue 2402273002: DrawingBuffer: Clean up GL state restoration (Closed)
Patch Set: Use built-in methods 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..71470d0a5f2df01b99477beafa143fd13c3989ec 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,10 @@ WebGL2RenderingContextBase::getUnpackPixelStoreParams(
return params;
}
+void WebGL2RenderingContextBase::
+ DrawingBufferClientRestorePixelUnpackBufferBinding() {
+ contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER,
+ objectOrZero(m_boundPixelUnpackBuffer.get()));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698