diff options
author | Ilia Mirkin <[email protected]> | 2016-06-09 22:50:43 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-06-18 12:51:55 -0400 |
commit | d68c1e2ac28bbf0ac6259e9619fb73958fc598b8 (patch) | |
tree | a2bc494b87e8fc08ad777551231a73d9e11b42e4 /src/mesa/main/attrib.c | |
parent | 78506ad2466563d9ec3f8d09a746a069e6cab6b5 (diff) |
mesa: add GL_EXT_window_rectangles state storage/retrieval functionality
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r-- | src/mesa/main/attrib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 52a8ba63363..f859191f69c 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1305,6 +1305,13 @@ _mesa_PopAttrib(void) _mesa_set_enablei(ctx, GL_SCISSOR_TEST, i, (scissor->EnableFlags >> i) & 1); } + if (ctx->Extensions.EXT_window_rectangles) { + STATIC_ASSERT(sizeof(struct gl_scissor_rect) == + 4 * sizeof(GLint)); + _mesa_WindowRectanglesEXT( + scissor->WindowRectMode, scissor->NumWindowRects, + (const GLint *)scissor->WindowRects); + } } break; case GL_STENCIL_BUFFER_BIT: |