mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
intel: Call intel_draw_buffer() again after _mesa_make_current()
The initial call to intel_draw_buffers() happens when intel->ctx.DrawBuffer is still NULL. Call it again after calling _mesa_make_current(). https://bugs.freedesktop.org/show_bug.cgi?id=28112
This commit is contained in:
parent
bb81f65b18
commit
2386d41648
1 changed files with 6 additions and 0 deletions
|
|
@ -906,6 +906,12 @@ intelMakeCurrent(__DRIcontext * driContextPriv,
|
|||
driContextPriv->dri2.read_stamp = driReadPriv->dri2.stamp - 1;
|
||||
intel_prepare_render(intel);
|
||||
_mesa_make_current(&intel->ctx, fb, readFb);
|
||||
|
||||
/* We do this in intel_prepare_render() too, but intel->ctx.DrawBuffer
|
||||
* is NULL at that point. We can't call _mesa_makecurrent()
|
||||
* first, since we need the buffer size for the initial
|
||||
* viewport. So just call intel_draw_buffer() again here. */
|
||||
intel_draw_buffer(&intel->ctx, intel->ctx.DrawBuffer);
|
||||
}
|
||||
else {
|
||||
_mesa_make_current(NULL, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue