summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-09-16 15:43:31 -0400
committerIlia Mirkin <[email protected]>2016-09-22 20:42:30 -0400
commitc0a7e931e36e7d8a244da5947ec6de023b58b0a5 (patch)
tree162756185e68ba9b9d107d4d93f5397207ed8a1c /src
parent0f01aa803332760079bde36218a3e884f2613db6 (diff)
st/mesa: turn on OES_viewport_array when dependencies are met
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 807fbfbc1f6..ef17aba321e 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1226,6 +1226,11 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->OES_geometry_shader &&
extensions->ARB_texture_cube_map_array;
+ extensions->OES_viewport_array =
+ extensions->ARB_ES3_1_compatibility &&
+ extensions->OES_geometry_shader &&
+ extensions->ARB_viewport_array;
+
extensions->OES_primitive_bounding_box = extensions->ARB_ES3_1_compatibility;
consts->NoPrimitiveBoundingBoxOutput = true;
}