diff options
Diffstat (limited to 'src/mesa/state_tracker/st_atom_framebuffer.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index ea41d9dcd76..7435c00a4fa 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -59,8 +59,8 @@ update_framebuffer_size(struct pipe_framebuffer_state *framebuffer, struct pipe_surface *surface) { assert(surface); - assert(surface->width < UINT_MAX); - assert(surface->height < UINT_MAX); + assert(surface->width < USHRT_MAX); + assert(surface->height < USHRT_MAX); framebuffer->width = MIN2(framebuffer->width, surface->width); framebuffer->height = MIN2(framebuffer->height, surface->height); } @@ -205,9 +205,9 @@ update_framebuffer_state( struct st_context *st ) } #endif - if (framebuffer->width == UINT_MAX) + if (framebuffer->width == USHRT_MAX) framebuffer->width = 0; - if (framebuffer->height == UINT_MAX) + if (framebuffer->height == USHRT_MAX) framebuffer->height = 0; cso_set_framebuffer(st->cso_context, framebuffer); |