diff options
author | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 01:01:46 +0000 |
---|---|---|
committer | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 01:01:46 +0000 |
commit | 1c4a27a1e520211657891fc91eb2ece2a1340e7b (patch) | |
tree | 11b20c0909d9448d999c9e0cddcb6591c1046149 /gpu | |
parent | 62c6a8ac898529eb0bcf711cad499bf2618c851d (diff) | |
download | chromium_src-1c4a27a1e520211657891fc91eb2ece2a1340e7b.zip chromium_src-1c4a27a1e520211657891fc91eb2ece2a1340e7b.tar.gz chromium_src-1c4a27a1e520211657891fc91eb2ece2a1340e7b.tar.bz2 |
Add #include <string.h> so that the 64-bit nacl-g++ compiler has a definition
for memcpy in gles2_cmd_format.h. This fixes a build breakage in native
client.
Initialize |command_buffer_| to NULL to prevent a random crash during load of
a Pepper plugin on the Mac.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/777003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/common/gles2_cmd_format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_format.h b/gpu/command_buffer/common/gles2_cmd_format.h index 7660eb5..965c212 100644 --- a/gpu/command_buffer/common/gles2_cmd_format.h +++ b/gpu/command_buffer/common/gles2_cmd_format.h @@ -21,6 +21,8 @@ #include <GLES2/gl2types.h> // NOLINT #endif +#include <string.h> + #include "../common/types.h" #include "../common/bitfield_helpers.h" #include "../common/cmd_buffer_common.h" |