Index: cc/resources/resource_format.cc |
diff --git a/cc/resources/resource_format.cc b/cc/resources/resource_format.cc |
index ba4e65d570a8c79f2128026f6f0c47ae641a4016..88cd01c347d0498dbb9ee181520c6b1a6e831828 100644 |
--- a/cc/resources/resource_format.cc |
+++ b/cc/resources/resource_format.cc |
@@ -88,7 +88,10 @@ GLenum GLDataFormat(ResourceFormat format) { |
} |
GLenum GLInternalFormat(ResourceFormat format) { |
- return GLDataFormat(format); |
+ if (format == RED_8) |
reveman
2016/02/20 01:07:55
nit: return (format == RED_8) ? GL_R8_EXT : GLData
Daniele Castagna
2016/02/20 01:16:16
Done.
|
+ return GL_R8_EXT; |
+ else |
+ return GLDataFormat(format); |
} |
gfx::BufferFormat BufferFormat(ResourceFormat format) { |