Khronos Public Bugzilla
Bug 267 - RFE: add getErrorDetail() or similar
RFE: add getErrorDetail() or similar
Status: NEW
Product: WebGL
Classification: Unclassified
Component: WG Issue Tracking
unspecified
All All
: P3 minor
: ---
Assigned To: 3dweb Working Group email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-02 19:46 PST by Kenneth Russell
Modified: 2010-03-04 20:49 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Russell 2010-03-02 19:46:19 PST
The WebGL specification communicates all errors via the getError / glGetError mechanism. In some cases, restrictions in WebGL semantics above and beyond those in the OpenGL ES 2.0 API require synthesizing OpenGL errors.

In such cases it would be useful to developers to be able to request additional information beyond the simple return code from getError(). Adding the following simple entry point would provide a reasonable amount of additional debugging information:

  DOMString getErrorDetail();

which would return a detail message, if any, for the last error code returned from a call to getError(). This information could then be included in logs or stack traces.
Comment 1 Jon Leech 2010-03-04 20:49:53 PST
This is not an OpenGL bug.