Commit c304869e authored by Marek Olšák's avatar Marek Olšák

st/mesa: implement depth clamp

parent 4460e9f0
......@@ -55,6 +55,8 @@ static void update_clip( struct st_context *st )
clip.nr++;
}
}
clip.depth_clamp = st->ctx->Transform.DepthClamp != GL_FALSE;
if (memcmp(&clip, &st->state.clip, sizeof(clip)) != 0) {
st->state.clip = clip;
......
......@@ -397,4 +397,8 @@ void st_init_extensions(struct st_context *st)
if (screen->get_param(screen, PIPE_CAP_GEOMETRY_SHADER4)) {
ctx->Extensions.ARB_geometry_shader4 = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_DEPTH_CLAMP)) {
ctx->Extensions.ARB_depth_clamp = GL_TRUE;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment