Chromium Code Reviews| Index: ui/gl/gl_image_memory.cc |
| diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc |
| index a752940615fd9a6b7cb10bc6f2772468fbd63050..e325127254e42a22caab35e10568bc771b0da20a 100644 |
| --- a/ui/gl/gl_image_memory.cc |
| +++ b/ui/gl/gl_image_memory.cc |
| @@ -179,15 +179,9 @@ bool GLImageMemory::CopyTexImage(unsigned target) { |
| return false; |
| DCHECK(memory_); |
| - glTexImage2D(target, |
| - 0, // mip level |
| - TextureFormat(format_), |
| - size_.width(), |
| - size_.height(), |
| - 0, // border |
| - DataFormat(format_), |
| - DataType(format_), |
| - memory_); |
| + glTexSubImage2D(target, 0 /* level */, 0 /* x */, 0 /* y */, size_.width(), |
| + size_.height(), DataFormat(format_), DataType(format_), |
| + memory_); |
|
reveman
2014/11/20 18:57:15
nit: Please make the style consistent with TexSubI
|
| return true; |
| } |