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

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

Issue 2402273002: DrawingBuffer: Clean up GL state restoration (Closed)
Patch Set: Incorporate review feedback 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 7770ea6409f2d0356bcfc5d663b7569261ffab92..ddaf9b3c1e61432ebe9f047efb625cfdfe04c4c7 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -3690,7 +3690,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);
}
@@ -4723,4 +4722,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