mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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 <siglesias@igalia.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c4ae047cab
commit
aa849d97a0
1 changed files with 4 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue