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: https://angleproject.googlecode.com/svn/trunk@59 736b8ea6-26fd-11df-bfd4-992fa37f6226
3 files changed
tree: 15bfac9cf6cb1421bd6f8e6ef99bf5ff9eed8ebf
  1. include/
  2. src/
  3. .gitignore
  4. AUTHORS
  5. codereview.settings
  6. CONTRIBUTORS
  7. LICENSE