Closed
Bug 969632
Opened 12 years ago
Closed 11 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•12 years ago
|
||
Attachment #8372584 -
Flags: review?(bjacob)
Updated•12 years ago
|
Attachment #8372584 -
Flags: review?(bjacob) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 2•12 years ago
|
||
Keywords: checkin-needed
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 4•12 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•11 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•11 years ago
|
||
Attachment #8373626 -
Flags: review?(bjacob)
Assignee | ||
Updated•11 years ago
|
Attachment #8372584 -
Flags: checkin+
Updated•11 years ago
|
Attachment #8373626 -
Flags: review?(bjacob) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•