Skip to content

Commit

Permalink
The function glBufferData 's second argument type is GLsizeiptr, not …
Browse files Browse the repository at this point in the history
…GLsizei.

glBufferSubData 's second argument type is GLintptr, not GLint. And the third argument type is GLsizeiptr, not GLsizei.
A mistake in glBufferData and glBufferSubData 's arguments.

BUG=

Review URL: https://codereview.chromium.org/291493005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273106 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
penghu@tencent.com committed May 28, 2014
1 parent 2a83505 commit a30facc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ Ziran Sun <ziran.sun@samsung.com>
Yongha Lee <yongha78.lee@samsung.com>
方觉 (Fang Jue) <fangjue23303@gmail.com>
Yupei Wang <perryuwang@tencent.com>
Peng Hu <penghu@tencent.com>

BlackBerry Limited <*@blackberry.com>
Code Aurora Forum <*@codeaurora.org>
Expand Down
6 changes: 4 additions & 2 deletions ui/gl/generate_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@
'GLbitfield mask, GLenum filter', },
{ 'return_type': 'void',
'names': ['glBufferData'],
'arguments': 'GLenum target, GLsizei size, const void* data, GLenum usage', },
'arguments':
'GLenum target, GLsizeiptr size, const void* data, GLenum usage', },
{ 'return_type': 'void',
'names': ['glBufferSubData'],
'arguments': 'GLenum target, GLint offset, GLsizei size, const void* data', },
'arguments':
'GLenum target, GLintptr offset, GLsizeiptr size, const void* data', },
{ 'return_type': 'GLenum',
'names': ['glCheckFramebufferStatusEXT',
'glCheckFramebufferStatus'],
Expand Down

0 comments on commit a30facc

Please sign in to comment.