summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Jack Palevich <jackpal@google.com> 2009-10-21 11:02:44 -0700
committer Jack Palevich <jackpal@google.com> 2009-10-21 11:02:44 -0700
commit5afdc87704f82cb6c3576695dd157b65ae6f3d33 (patch)
treea21f91c1cc1e832eefcda1bddd3f949a543df59f /opengl/libagl/array.cpp
parent7793548d0a71777cbc60ac7222d00fb9ca93cd48 (diff)
Add size checks for glBufferData and glBufferSubData
Without the size checks it's possible for calls to glBufferData and glBufferSubData to read off the end of the Buffer object's data, which can cause page faults. Fix end-of-line characters for the "spec" files. (That's why every line of these files is changed.) Enhance our code emitter to properly handle bounds checks for possibly-null pointers.
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions