summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/framebuffer.h
diff options
context:
space:
mode:
authorKevin Rogovin <[email protected]>2015-06-17 13:29:54 +0300
committerMartin Peres <[email protected]>2015-06-17 14:39:03 +0300
commit51f4b51151cb08988b5de466f3c2348876784cc5 (patch)
treeb1626109ef5b7a863a437a7d0eda37361844fbe1 /src/mesa/main/framebuffer.h
parent74987977a36a7111281e8fb53568dc05dbd3a8b4 (diff)
mesa: helper function for scissor box of gl_framebuffer
Add helper convenience function that intersects the scissor values against a passed bounding box. In addition, to avoid replicated code, make the function _mesa_scissor_bounding_box() use this new function. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Kevin Rogovin <[email protected]>
Diffstat (limited to 'src/mesa/main/framebuffer.h')
-rw-r--r--src/mesa/main/framebuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.h b/src/mesa/main/framebuffer.h
index ca286e9a992..08e43222045 100644
--- a/src/mesa/main/framebuffer.h
+++ b/src/mesa/main/framebuffer.h
@@ -75,6 +75,9 @@ extern void
_mesa_scissor_bounding_box(const struct gl_context *ctx,
const struct gl_framebuffer *buffer,
unsigned idx, int *bbox);
+extern void
+_mesa_intersect_scissor_bounding_box(const struct gl_context *ctx,
+ unsigned idx, int *bbox);
static inline GLuint
_mesa_geometric_width(const struct gl_framebuffer *buffer)