commit | 07f6badb7ff2b7fe87c6214caaa524a0dd9b1ea1 | [log] [tgz] |
---|---|---|
author | daniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Sun Mar 21 04:31:28 2010 +0000 |
committer | daniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Sun Mar 21 04:31:28 2010 +0000 |
tree | 15bfac9cf6cb1421bd6f8e6ef99bf5ff9eed8ebf | |
parent | 90e5bc9a9eac232ac746461c3d3bac568ebc111d [diff] |
Don't crash on a null pointer passed to glBufferData TRAC #11528 * Initialise buffer to 0 if BufferData is called with data = NULL (special case: if not resizing, just leave the old data in place). * BufferSubData ignores calls with data = NULL * Replace Buffer::data_t with GLubyte. Author: Andrew Lewycky Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch git-svn-id: http://angleproject.googlecode.com/svn/trunk@59 736b8ea6-26fd-11df-bfd4-992fa37f6226