Index: third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
index e4518f11d3004f9b0fc04784cede656a1885951c..16a0fb913fdf85d178d21e49574bb2c99242fc53 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp |
@@ -56,6 +56,13 @@ void WebGLTimerQueryEXT::updateCachedResult(WebGraphicsContext3D* ctx) |
if (!hasTarget()) |
return; |
+ // If this is a timestamp query, set the result to 0 and make it available as we don't support timestamps in WebGL due to very poor driver support for them |
+ if (m_target == GL_TIMESTAMP_EXT) { |
+ m_queryResult = 0; |
+ m_queryResultAvailable = true; |
+ return; |
+ } |
+ |
// We can only update the cached result when control returns to the browser. |
m_canUpdateAvailability = false; |
GLuint available = 0; |