From: Samuel Iglesias Gonsálvez Date: Tue, 1 Mar 2016 11:02:27 +0000 (+0100) Subject: main: call invalidate_framebuffer_storage() with driver's viewport limits X-Git-Tag: upstream/17.1.0~12209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa849d97a0df34a1457d7205518bd82365b4eb2d;p=platform%2Fupstream%2Fmesa.git main: call invalidate_framebuffer_storage() with driver's viewport limits Don't use hardcoded ones because the driver can set different ones. Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index c9e1518..feab86c 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -4170,7 +4170,8 @@ _mesa_InvalidateFramebuffer(GLenum target, GLsizei numAttachments, */ invalidate_framebuffer_storage(ctx, fb, numAttachments, attachments, 0, 0, - MAX_VIEWPORT_WIDTH, MAX_VIEWPORT_HEIGHT, + ctx->Const.MaxViewportWidth, + ctx->Const.MaxViewportHeight, "glInvalidateFramebuffer"); } @@ -4210,7 +4211,8 @@ _mesa_InvalidateNamedFramebufferData(GLuint framebuffer, */ invalidate_framebuffer_storage(ctx, fb, numAttachments, attachments, 0, 0, - MAX_VIEWPORT_WIDTH, MAX_VIEWPORT_HEIGHT, + ctx->Const.MaxViewportWidth, + ctx->Const.MaxViewportHeight, "glInvalidateNamedFramebufferData"); }