Closed
Bug 969632
Opened 10 years ago
Closed 10 years ago
glDeleteFoo funcs should take `const GLint*` not `GLint*`
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(2 files)
6.92 KB,
patch
|
bjacob
:
review+
jgilbert
:
checkin+
|
Details | Diff | Splinter Review |
12.32 KB,
patch
|
bjacob
:
review+
|
Details | Diff | Splinter Review |
For some reason, our GLContext::fDeleteTextures and friends take `GLint*` instead of `const GLint*`, meaning that you'll see code like this in places: class { GLContext* const mGL; const GLint mTex; void Foo() { GLint tex = mTex; mGL->fDeleteTextures(1, &tex); // OR mGL->fDeleteTextures(1, (GLint*)&tex); // Instead of mGL->fDeleteTextures(1, &tex); // "Can't convert `const GLint*` to `GLint*` without loosing qualifiers" } }; Interestingly, GLContextSymbols has is already const-correct.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8372584 -
Flags: review?(bjacob)
Updated•10 years ago
|
Attachment #8372584 -
Flags: review?(bjacob) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6d7069935a34
Keywords: checkin-needed
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6d7069935a34
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 4•10 years ago
|
||
(In reply to Jeff Gilbert [:jgilbert] from comment #0) > For some reason, our GLContext::fDeleteTextures and friends take `GLint*` > instead of `const GLint*`, meaning that you'll see code like this in places: ... I don't see you removing those workarounds. How come?
Flags: needinfo?(jgilbert)
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to :Ms2ger from comment #4) > (In reply to Jeff Gilbert [:jgilbert] from comment #0) > > For some reason, our GLContext::fDeleteTextures and friends take `GLint*` > > instead of `const GLint*`, meaning that you'll see code like this in places: ... > > I don't see you removing those workarounds. How come? I didn't think to include that in this bug, for some reason. Thanks. Reopening to do this.
Status: RESOLVED → REOPENED
Flags: needinfo?(jgilbert)
Resolution: FIXED → ---
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8373626 -
Flags: review?(bjacob)
Assignee | ||
Updated•10 years ago
|
Attachment #8372584 -
Flags: checkin+
Updated•10 years ago
|
Attachment #8373626 -
Flags: review?(bjacob) → review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b135788f78ea
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b135788f78ea
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•