Commit 592dd573 authored by miu@chromium.org's avatar miu@chromium.org

[Mac] Resolve trybot flakiness: DCHECK fail when deleting GL shader programs.

The code has other protections to ensure all programs will be eventually deleted, and only once for each time they're created.

BUG=326328
R=hclam@chromium.org

Review URL: https://codereview.chromium.org/123613005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243196 0039d316-1c4b-4281-b951-d872f2087c98
parent 10ba1177
......@@ -358,8 +358,6 @@ void CompositingIOSurfaceShaderPrograms::Reset() {
for (size_t i = 0; i < arraysize(shader_programs_); ++i) {
if (shader_programs_[i] != 0u) {
glDeleteProgram(shader_programs_[i]);
DCHECK(glGetError() == GL_NO_ERROR)
<< "when calling glDeleteProgram(shader_programs_[" << i << "])";
shader_programs_[i] = 0u;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment