-
Notifications
You must be signed in to change notification settings - Fork 692
Disallow point rendering with undefined point size #3356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3286,6 +3286,8 @@ <h4><a name="WRITING_TO_THE_DRAWING_BUFFER">Writing to the drawing buffer</a></h | |
| <dd> | ||
| If <em>first</em> is negative, an <code>INVALID_VALUE</code> error will be generated. | ||
| If the CURRENT_PROGRAM is null, an <code>INVALID_OPERATION</code> error will be generated. | ||
| If the <em>mode</em> is <code>POINTS</code> and the current program does not set | ||
| <code>gl_PointSize</code> value, an <code>INVALID_OPERATION</code> error will be generated. | ||
| <dt class="idl-code">void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset) | ||
| <span class="gl-spec">(<a href="http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.pdf#nameddest=section-2.8">OpenGL ES 2.0 §2.8</a>, <a class="nonnormative" href="http://www.khronos.org/opengles/sdk/2.0/docs/man/xhtml/glDrawElements.xml">man page</a>)</span> | ||
| <dd> | ||
|
|
@@ -3297,6 +3299,8 @@ <h4><a name="WRITING_TO_THE_DRAWING_BUFFER">Writing to the drawing buffer</a></h | |
| then a non-null <code>WebGLBuffer</code> must be bound to the <code>ELEMENT_ARRAY_BUFFER</code> | ||
| binding point or an <code>INVALID_OPERATION</code> error will be generated.<br><br> | ||
| If the CURRENT_PROGRAM is null, an <code>INVALID_OPERATION</code> error will be generated. | ||
| If the <em>mode</em> is <code>POINTS</code> and the current program does not set | ||
| <code>gl_PointSize</code> value, an <code>INVALID_OPERATION</code> error will be generated. | ||
|
|
||
| WebGL performs additional error checking beyond that specified in OpenGL ES 2.0 during | ||
| calls to <code>drawArrays</code> | ||
|
|
@@ -4455,6 +4459,17 @@ <h3>Wide point primitive clipping</h3> | |
| </p> | ||
| </div> | ||
|
|
||
| <h3>Undefined Point Size</h3> | ||
| <p> | ||
| Draw calls with <code>POINTS</code> primitives are rejected when the bound program does not set | ||
| <code>gl_PointSize</code>. | ||
| </p> | ||
| <div class="note rationale"> | ||
| <p> | ||
| Point rendering with undefined point size is undefined in GLES and may be unsupported in other APIs. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From concall: please mention something more precise about why this doesn't work.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After looking into this again, it seems there are two underlying issues there:
So this issue looks like an ANGLE limitation, which may remain indefinitely. What would be the appropriate language for the spec here? |
||
| </p> | ||
| </div> | ||
|
|
||
| <!-- ======================================================================================================= --> | ||
|
|
||
| <h2>References</h2> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.