mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
intel: Call _mesa_make_current() after getting initial buffers
The default viewport is the window rectangle, which is set up by _mesa_make_current(). To be able to do that we need to get the window dimension (and buffers) first, so we have to call intel_prepare_render() before we can call into _mesa_make_current(). Fixes #26676 and #26678.
This commit is contained in:
parent
0557d0a4b2
commit
6de8e563ac
1 changed files with 1 additions and 1 deletions
|
|
@ -880,12 +880,12 @@ intelMakeCurrent(__DRIcontext * driContextPriv,
|
||||||
struct gl_framebuffer *fb = driDrawPriv->driverPrivate;
|
struct gl_framebuffer *fb = driDrawPriv->driverPrivate;
|
||||||
struct gl_framebuffer *readFb = driReadPriv->driverPrivate;
|
struct gl_framebuffer *readFb = driReadPriv->driverPrivate;
|
||||||
|
|
||||||
_mesa_make_current(&intel->ctx, fb, readFb);
|
|
||||||
intel->driReadDrawable = driReadPriv;
|
intel->driReadDrawable = driReadPriv;
|
||||||
intel->driDrawable = driDrawPriv;
|
intel->driDrawable = driDrawPriv;
|
||||||
driContextPriv->dri2.draw_stamp = driDrawPriv->dri2.stamp - 1;
|
driContextPriv->dri2.draw_stamp = driDrawPriv->dri2.stamp - 1;
|
||||||
driContextPriv->dri2.read_stamp = driReadPriv->dri2.stamp - 1;
|
driContextPriv->dri2.read_stamp = driReadPriv->dri2.stamp - 1;
|
||||||
intel_prepare_render(intel);
|
intel_prepare_render(intel);
|
||||||
|
_mesa_make_current(&intel->ctx, fb, readFb);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_mesa_make_current(NULL, NULL, NULL);
|
_mesa_make_current(NULL, NULL, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue