summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2016-09-28 11:40:37 -0700
committerAnuj Phogat <[email protected]>2016-10-04 13:20:34 -0700
commit239ff641739dc9d6ce210ad3abb37b7e01171375 (patch)
tree7956d790244a6cefafe0a7b9aa0264b68dc11c03 /src/mesa/main/viewport.c
parent0a7691ee62b220a19f9665a18520e13a8e646717 (diff)
mesa: Add a check for OES_viewport_array
Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.c')
-rw-r--r--src/mesa/main/viewport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c
index f59723fad95..bd580446f76 100644
--- a/src/mesa/main/viewport.c
+++ b/src/mesa/main/viewport.c
@@ -52,7 +52,9 @@ set_viewport_no_notify(struct gl_context *ctx, unsigned idx,
* determined by calling GetFloatv with the symbolic constant
* VIEWPORT_BOUNDS_RANGE (see section 6.1)."
*/
- if (ctx->Extensions.ARB_viewport_array) {
+ if (ctx->Extensions.ARB_viewport_array ||
+ (ctx->Extensions.OES_viewport_array &&
+ _mesa_is_gles31(ctx))) {
x = CLAMP(x,
ctx->Const.ViewportBounds.Min, ctx->Const.ViewportBounds.Max);
y = CLAMP(y,