Closed Bug 577013 Opened 15 years ago Closed 15 years ago

Rework GetConcreteObject and friends; return INVALID_VALUE on unexpected null objects

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bjacob, Assigned: bjacob)

Details

Attachments

(1 file, 1 obsolete file)

This patch does for GetConcreteObject and friends, what we recently did for the Validate... functions: take a 'info' parameter and do the GL error synthesizing, so that the caller only has to return NS_OK; This patch also (and that was the main motivation) ensures that we generate INVALID_VALUE and not INVALID_OPERATION on unexpected null objects. This makes us pass some tests. Finally, CheckConversion is renamed to CanGetConcreteObject. I would have liked to pass 'info' as the last parameter, but that was impractical as we have optional parameters.
Assignee: nobody → bjacob
Status: NEW → ASSIGNED
Attachment #456091 - Flags: review?(vladimir)
Some fixes in OBTAIN_UNIFORM_LOCATION
Attachment #456091 - Attachment is obsolete: true
Attachment #456093 - Flags: review?(vladimir)
Attachment #456091 - Flags: review?(vladimir)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: