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

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

Issue 2065843003: Remove transform feedback validation in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix transform feedback status query Created 4 years, 6 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/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 42271466426d6b30408ecbb99d9f2008869f896f..8bff5927ab95daf4dbec4473b96429ba9ac58d13 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -2239,11 +2239,6 @@ void WebGLRenderingContextBase::drawElements(GLenum mode, GLsizei count, GLenum
return;
}
- if (transformFeedbackActive() && !transformFeedbackPaused()) {
- synthesizeGLError(GL_INVALID_OPERATION, "drawElements", "transform feedback is active and not paused");
- return;
- }
-
ScopedRGBEmulationColorMask emulationColorMask(contextGL(), m_colorMask, m_drawingBuffer.get());
clearIfComposited();
contextGL()->DrawElements(mode, count, type, reinterpret_cast<void*>(static_cast<intptr_t>(offset)));
@@ -4924,11 +4919,6 @@ void WebGLRenderingContextBase::useProgram(ScriptState* scriptState, WebGLProgra
return;
}
- if (transformFeedbackActive() && !transformFeedbackPaused()) {
- synthesizeGLError(GL_INVALID_OPERATION, "useProgram", "transform feedback is active and not paused");
- return;
- }
-
if (m_currentProgram != program) {
if (m_currentProgram)
m_currentProgram->onDetached(contextGL());

Powered by Google App Engine
This is Rietveld 408576698