mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 15:30:40 +02:00
Fixes Glean vertex/fragment test failures. Those tests never called
glViewport so the viewport was 0 by 0 pixels.
This commit is contained in:
parent
c97bc619d6
commit
df5edb21f8
1 changed files with 10 additions and 0 deletions
|
|
@ -577,6 +577,16 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
|
|||
}
|
||||
}
|
||||
|
||||
/* set initial GLframebuffer size to match window, if needed */
|
||||
if (drawFb->Width == 0 && driDrawPriv->w) {
|
||||
_mesa_resize_framebuffer(&intel->ctx, drawFb,
|
||||
driDrawPriv->w, driDrawPriv->h);
|
||||
}
|
||||
if (readFb->Width == 0 && driReadPriv->w) {
|
||||
_mesa_resize_framebuffer(&intel->ctx, readFb,
|
||||
driReadPriv->w, driReadPriv->h);
|
||||
}
|
||||
|
||||
_mesa_make_current(&intel->ctx, drawFb, readFb);
|
||||
|
||||
/* The drawbuffer won't always be updated by _mesa_make_current:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue