| Index: gpu/command_buffer/common/gles2_cmd_utils.cc
|
| diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| index 736e6738ceaee590eac117693b7b7bd50c36757c..9c10bb4da96ea09bf51a8ab47e622f27943f5615 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| +++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| @@ -346,6 +346,10 @@ int ElementsPerGroup(int format, int type) {
|
| case GL_ALPHA:
|
| case GL_LUMINANCE:
|
| case GL_DEPTH_COMPONENT:
|
| + case GL_DEPTH_COMPONENT24_OES:
|
| + case GL_DEPTH_COMPONENT32_OES:
|
| + case GL_DEPTH_COMPONENT16:
|
| + case GL_DEPTH24_STENCIL8_OES:
|
| case GL_DEPTH_STENCIL_OES:
|
| return 1;
|
| default:
|
| @@ -598,6 +602,8 @@ uint32 GLES2Util::GetChannelsForFormat(int format) {
|
| case GL_RGBA4:
|
| case GL_RGB5_A1:
|
| return kRGBA;
|
| + case GL_DEPTH_COMPONENT32_OES:
|
| + case GL_DEPTH_COMPONENT24_OES:
|
| case GL_DEPTH_COMPONENT16:
|
| case GL_DEPTH_COMPONENT:
|
| return kDepth;
|
|
|