summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 17:04:08 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 17:04:08 +0000
commitf39f4b3f8638814272875f37d8b6f574c86d2079 (patch)
tree9459a42ec7da2c29fac3eaf617b65b9c0b0ae598 /gpu/command_buffer/client
parentc86fe8cb310e73a3664e178eb18e7914c4001a3b (diff)
downloadchromium_src-f39f4b3f8638814272875f37d8b6f574c86d2079.zip
chromium_src-f39f4b3f8638814272875f37d8b6f574c86d2079.tar.gz
chromium_src-f39f4b3f8638814272875f37d8b6f574c86d2079.tar.bz2
Changes the command buffer code to check that all
enabled vertex attribs are valid, not just the ones the current program is using. TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/2021007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client')
-rw-r--r--gpu/command_buffer/client/gles2_implementation.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 8d7c57f..f460329 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -108,8 +108,8 @@ class ClientSideBufferHelper {
VertexAttribInfo()
: enabled_(false),
buffer_id_(0),
- size_(0),
- type_(0),
+ size_(4),
+ type_(GL_FLOAT),
normalized_(GL_FALSE),
pointer_(NULL),
gl_stride_(0) {