st/mesa: fix wrong initialization of MaxPointSize
This commit is contained in:
@@ -114,6 +114,10 @@ void st_init_limits(struct st_context *st)
|
|||||||
= _maxf(1.0f, screen->get_paramf(screen, PIPE_CAP_MAX_POINT_WIDTH));
|
= _maxf(1.0f, screen->get_paramf(screen, PIPE_CAP_MAX_POINT_WIDTH));
|
||||||
c->MaxPointSizeAA
|
c->MaxPointSizeAA
|
||||||
= _maxf(1.0f, screen->get_paramf(screen, PIPE_CAP_MAX_POINT_WIDTH_AA));
|
= _maxf(1.0f, screen->get_paramf(screen, PIPE_CAP_MAX_POINT_WIDTH_AA));
|
||||||
|
/* called after _mesa_create_context/_mesa_init_point, fix default user
|
||||||
|
* settable max point size up
|
||||||
|
*/
|
||||||
|
st->ctx->Point.MaxSize = MAX2(c->MaxPointSize, c->MaxPointSizeAA);
|
||||||
/* these are not queryable. Note that GL basically mandates a 1.0 minimum
|
/* these are not queryable. Note that GL basically mandates a 1.0 minimum
|
||||||
* for non-aa sizes, but we can go down to 0.0 for aa points.
|
* for non-aa sizes, but we can go down to 0.0 for aa points.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user