Index: ui/gl/gl_fence_nv.cc |
diff --git a/ui/gl/gl_fence_nv.cc b/ui/gl/gl_fence_nv.cc |
index 0e23b283458fd71c0404e5806403c79003a15c08..df972bd4b5ef781dd90a6bdefdf3e0858b892717 100644 |
--- a/ui/gl/gl_fence_nv.cc |
+++ b/ui/gl/gl_fence_nv.cc |
@@ -20,6 +20,14 @@ GLFenceNV::GLFenceNV() { |
// they are bound, in that they acquire their state upon binding. |
// We will arbitrarily return TRUE for consistency. |
glGenFencesNV(1, &fence_); |
+ ResetState(); |
+} |
+ |
+bool GLFenceNV::ResetSupported() { |
+ return true; |
+} |
+ |
+void GLFenceNV::ResetState() { |
glSetFenceNV(fence_, GL_ALL_COMPLETED_NV); |
DCHECK(glIsFenceNV(fence_)); |
glFlush(); |