Re: [Mesa-dev] [PATCH v2 2/6] mesa: Add support for GL_NV_fill_rectangle

2017-03-30 Thread Ilia Mirkin
On Thu, Mar 30, 2017 at 5:40 PM, Lyude wrote: > + /* From the GL_NV_fill_rectangle spec: > +* > +* "An INVALID_OPERATION error is generated by Begin or any Draw command > if > +* only one of the front and back polygon mode is FILL_RECTANGLE_NV." > +*/ > + if ((ctx->Polygon.Fr

[Mesa-dev] [PATCH v2 2/6] mesa: Add support for GL_NV_fill_rectangle

2017-03-30 Thread Lyude
Since we don't have the bits required to support this in OpenGLES yet, this only enables support for Desktop OpenGL Signed-off-by: Lyude Changes since v1: - Simply _mesa_PolygonMode() a little bit - Fix formatting in OpenGL spec excerpts - Move polygon mode checking into _mesa_valid_to_render()