Closed
Bug 1237191
Opened 9 years ago
Closed 9 years ago
[WebGL2] pass getQueryParameter in gl-object-get-calls.html
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: ethlin, Assigned: ethlin)
References
()
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Test getQueryParameter
FAIL gl.getQueryParameter(query, gl.QUERY_RESULT_AVAILABLE) should be false (of type boolean). Was null (of type object).
FAIL getQueryParameter did not generate INVALID_ENUM for invalid pname enum: NO_ERROR
Assignee | ||
Comment 1•9 years ago
|
||
Add some checks to return correct gl error.
Attachment #8704529 -
Flags: review?(jgilbert)
Comment 2•9 years ago
|
||
Comment on attachment 8704529 [details] [diff] [review]
Add check for getQueryParameter
Review of attachment 8704529 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/canvas/WebGL2ContextQueries.cpp
@@ +295,5 @@
>
> if (IsContextLost())
> return;
>
> + if (!ValidateQueryEnum(pname, "getQueryParameter"))
Just define this function above this function:
static bool
ValidateQueryEnum(WebGLContext* webgl, pname, funcName)
::: dom/canvas/WebGLContext.h
@@ +1285,5 @@
> bool ValidateCurFBForRead(const char* funcName,
> const webgl::FormatUsageInfo** const out_format,
> uint32_t* const out_width, uint32_t* const out_height);
>
> + bool ValidateQueryEnum(GLenum pname, const char* info);
No need to add a member for this.
Attachment #8704529 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 3•9 years ago
|
||
try server result:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0997d16adc27
Attachment #8704529 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•