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

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

Issue 1752703003: Fix transform feedback bugs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de0568a5dc1e9c93b40a66087efe5ba3414aa34b..7f03e50f6f215d40ad68be3596bbe7cd7028eecb 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -2006,6 +2006,10 @@ WebGLTransformFeedback* WebGL2RenderingContextBase::createTransformFeedback()
void WebGL2RenderingContextBase::deleteTransformFeedback(WebGLTransformFeedback* feedback)
{
+ if (transformFeedbackActive()) {
+ synthesizeGLError(GL_INVALID_OPERATION, "deleteTransformFeedback", "transform feedback is active");
+ return;
+ }
if (feedback == m_transformFeedbackBinding)
m_transformFeedbackBinding = nullptr;
@@ -2226,6 +2230,7 @@ void WebGL2RenderingContextBase::bindBufferBase(GLenum target, GLuint index, Web
}
webContext()->bindBufferBase(target, index, objectOrZero(buffer));
+ webContext()->bindBuffer(target, objectOrZero(buffer));
Zhenyao Mo 2016/03/01 22:33:01 I am not sure this is the right fix. I don't thin
qiankun 2016/03/01 23:52:06 The driver really call bindBuffer() when do bindBu
}
void WebGL2RenderingContextBase::bindBufferRange(GLenum target, GLuint index, WebGLBuffer* buffer, long long offset, long long size)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698