[Webkit-unassigned] [Bug 197592] [WebGL] Safari doesn't handle common no attribute use case

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 4 02:23:16 PDT 2019


--- Comment #1 from Gregg Tavares <gman at chromium.org> ---
Note that changing the vertex shader to this

attribute vec4 position
void main() {
  gl_PointSize = 128.0;
  gl_Position = position;

also fails but is perfectly valid WebGL with no attributes. Attributes have a default value of 0,0,0,1 so this will produce the same result as the previous example. Similarly you can set the attribute's constant value with `gl.vertexAttrib4f(...)` and draw points around the canvas.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190504/d762fb95/attachment-0001.html>

More information about the webkit-unassigned mailing list