summaryrefslogtreecommitdiffstats
path: root/src/glx/dri3_glx.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-07-31 17:47:35 +0100
committerEric Engestrom <[email protected]>2017-08-01 17:36:57 +0100
commit97eadb07e7deeb62175da972bfa7a1645798d0ba (patch)
treefcf7320f5606fc025005397a4897ae5a766e9d23 /src/glx/dri3_glx.c
parent2714a8f3e95139d2c473f99e913562929ae3f5d7 (diff)
loader: remove clamp_swap_interval()
As of last commit, no invalid swap interval can be stored, so there's no need to sanitize the values when reading them anymore. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r--src/glx/dri3_glx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 509160697f8..cc110370d3a 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -94,12 +94,6 @@ glx_dri3_get_swap_interval(struct loader_dri3_drawable *draw)
return priv->swap_interval;
}
-static int
-glx_dri3_clamp_swap_interval(struct loader_dri3_drawable *draw, int interval)
-{
- return interval;
-}
-
static void
glx_dri3_set_swap_interval(struct loader_dri3_drawable *draw, int interval)
{
@@ -180,7 +174,6 @@ glx_dri3_show_fps(struct loader_dri3_drawable *draw, uint64_t current_ust)
static const struct loader_dri3_vtable glx_dri3_vtable = {
.get_swap_interval = glx_dri3_get_swap_interval,
- .clamp_swap_interval = glx_dri3_clamp_swap_interval,
.set_swap_interval = glx_dri3_set_swap_interval,
.set_drawable_size = glx_dri3_set_drawable_size,
.in_current_context = glx_dri3_in_current_context,