Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2539)

Unified Diff: Source/platform/graphics/Extensions3D.cpp

Issue 106503003: Changed GL enums from GraphicsContext3D to standard versions (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/Extensions3D.h ('k') | Source/platform/graphics/GraphicsContext3D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Extensions3D.cpp
diff --git a/Source/platform/graphics/Extensions3D.cpp b/Source/platform/graphics/Extensions3D.cpp
index 2a90872da4323d73c8450950390a6606aaab8cca..6d0a61e68644cee035810c9c6dc7746efa3ff30e 100644
--- a/Source/platform/graphics/Extensions3D.cpp
+++ b/Source/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;
« no previous file with comments | « Source/platform/graphics/Extensions3D.h ('k') | Source/platform/graphics/GraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698