projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7691e
)
mesa: Add a check for OES_viewport_array
author
Anuj Phogat
<anuj.phogat@gmail.com>
Wed, 28 Sep 2016 18:40:37 +0000
(11:40 -0700)
committer
Anuj Phogat
<anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:34 +0000
(13:20 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/viewport.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/viewport.c
b/src/mesa/main/viewport.c
index f59723fad9571594c4f6551a7e02a16459ada0a3..bd580446f7620d174530493e211721c739f2d616 100644
(file)
--- 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,