Index: Source/core/platform/graphics/Extensions3D.cpp |
diff --git a/Source/core/platform/graphics/Extensions3D.cpp b/Source/core/platform/graphics/Extensions3D.cpp |
index 3857fc0b0bfcc0ff99afef5688d381a2875ad62e..22a5ee0888a3c273734f00f1f7ee5bf1f00d6dec 100644 |
--- a/Source/core/platform/graphics/Extensions3D.cpp |
+++ b/Source/core/platform/graphics/Extensions3D.cpp |
@@ -177,8 +177,8 @@ bool Extensions3D::canUseCopyTextureCHROMIUM(GC3Denum destFormat, GC3Denum destT |
{ |
// FIXME: restriction of (RGB || RGBA)/UNSIGNED_BYTE/(Level 0) should be lifted when |
// WebGraphicsContext3D::copyTextureCHROMIUM(...) are fully functional. |
- if ((destFormat == GraphicsContext3D::RGB || destFormat == GraphicsContext3D::RGBA) |
- && destType == GraphicsContext3D::UNSIGNED_BYTE |
+ if ((destFormat == GL_RGB || destFormat == GL_RGBA) |
+ && destType == GL_UNSIGNED_BYTE |
&& !level) |
return true; |
return false; |