summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/gl_fence_nv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gl/gl_fence_nv.cc')
-rw-r--r--chromium/ui/gl/gl_fence_nv.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/ui/gl/gl_fence_nv.cc b/chromium/ui/gl/gl_fence_nv.cc
index 0e23b283458..df972bd4b5e 100644
--- a/chromium/ui/gl/gl_fence_nv.cc
+++ b/chromium/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();