Summary: | [WebGL] Safari doesn't handle common no attribute use case | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gregg Tavares <gman> |
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | dino, justin_fan, nchase, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All |
Description
Gregg Tavares
2019-05-04 02:18:51 PDT
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. I’d love to see this fixed. I wish I knew where to start with a patch, but WebGL implementation is an intimidating black box to me. |