| Index: ppapi/proxy/ppb_graphics_3d_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppb_graphics_3d_proxy.cc (revision 94518)
|
| +++ ppapi/proxy/ppb_graphics_3d_proxy.cc (working copy)
|
| @@ -431,12 +431,13 @@
|
| std::vector<int32_t> attribs;
|
| if (attrib_list) {
|
| for (const int32_t* attr = attrib_list;
|
| - *attr != PP_GRAPHICS3DATTRIB_NONE;
|
| - ++attr) {
|
| - attribs.push_back(*attr);
|
| + attr[0] != PP_GRAPHICS3DATTRIB_NONE;
|
| + attr += 2) {
|
| + attribs.push_back(attr[0]);
|
| + attribs.push_back(attr[1]);
|
| }
|
| - attribs.push_back(PP_GRAPHICS3DATTRIB_NONE);
|
| }
|
| + attribs.push_back(PP_GRAPHICS3DATTRIB_NONE);
|
|
|
| HostResource result;
|
| dispatcher->Send(new PpapiHostMsg_PPBGraphics3D_Create(
|
|
|