Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
index 65e38b1c8e6e73c67ca0c5f2052668731f39eee8..90f91c5969a90ce2b034259f3bfd15c050b0f73c 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -644,7 +644,7 @@ GLsync GLES2Implementation::FenceSync(GLenum condition, GLbitfield flags) { |
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFenceSync(" |
<< GLES2Util::GetStringSyncCondition(condition) << ", " |
<< flags << ")"); |
- if (condition != 0x9117) { |
+ if (condition != GL_SYNC_GPU_COMMANDS_COMPLETE) { |
SetGLError(GL_INVALID_ENUM, "glFenceSync", "condition GL_INVALID_ENUM"); |
return 0; |
} |