OSDN Git Service

mesa: Only FRONT_AND_BACK is allowed for PolygonMode in core context
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 17 Aug 2012 23:03:06 +0000 (16:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Aug 2012 22:09:36 +0000 (15:09 -0700)
commit7e1cab09a155a0f986342323624f460340de355f
tree17ba260a01f1c74bb7bc4ec245f20abbfa2ad21b
parentd638da23d2ec2e9c52655b1ea138249e7f8bcccb
mesa: Only FRONT_AND_BACK is allowed for PolygonMode in core context

Page 407 (page 423 of the PDF) of the OpenGL 3.0 spec says (in the list
of deprecated functionality):

    "Separate polygon draw mode - PolygonMode face values of FRONT and
    BACK; polygons are always drawn in the same mode, no matter which
    face is being rasterized."

Also modify meta to not use FRONT or BACK in a core context.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta.c
src/mesa/main/polygon.c