mesa: Add support for GL_NV_fill_rectangle
authorLyude <lyude@redhat.com>
Tue, 7 Mar 2017 02:47:00 +0000 (21:47 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 1 Apr 2017 01:41:20 +0000 (21:41 -0400)
commit54af467334db53837171701471fb7854ccdf8dd5
tree1853092686151df53e08e0ddcf03a52e96a98e7d
parenta7cb2b40edc308e19d7254f86c1ec1f437c50ab3
mesa: Add support for GL_NV_fill_rectangle

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 <lyude@redhat.com>
Changes since v1:
- Simply _mesa_PolygonMode() a little bit
- Fix formatting in OpenGL spec excerpts
- Move polygon mode checking into _mesa_valid_to_render()
Changes since v3:
- Improve error message for invalid drawings with GL_FILL_RECTANGLE_NV

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/api_validate.c
src/mesa/main/extensions_table.h
src/mesa/main/mtypes.h
src/mesa/main/polygon.c