GPUBuffer::length() should return the size of the array buffer backing the GPU buffer...
[WebKit-https.git] / Source / WebCore / platform / graphics / cocoa / GPUBufferMetal.mm
index c7ab1a5..c145609 100644 (file)
@@ -64,7 +64,7 @@ unsigned long GPUBuffer::length() const
     if (!m_buffer)
         return 0;
 
-    return [m_buffer length];
+    return m_contents->byteLength();
 }
 
 RefPtr<ArrayBuffer> GPUBuffer::contents()