Closed
Bug 569070
Opened 15 years ago
Closed 15 years ago
Calling getString() on WebGL context throws an exception
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
INVALID
People
(Reporter: andorsalga, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.3a5pre) Gecko/20100529 Minefield/3.7a5pre
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.3a5pre) Gecko/20100529 Minefield/3.7a5pre
When a call to getString() is made on the WebGL context,
alert(gl.getString(gl.VERSION));
Minefield throws and exception:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsICanvasRenderingContextWebGL.getString]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///Users/andor/Documents/processing.js :: size :: line 3995" data: no]
On Webkit, it returns
2.0 NVIDIA-1.5.48 for gl.VERSION
Reproducible: Always
Steps to Reproduce:
Call getString() on WebGL context passing in either
gl.VENDOR
gl.RENDERER
gl.VERSION
gl.EXTENSIONS
Actual Results:
Exception is thrown
Expected Results:
String should be returned
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86 → All
Comment 1•15 years ago
|
||
getString() has been removed from the WebGL spec. Instead, use e.g. gl.getParameter(gl.VERSION).
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•