mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
i965: Update the comment about viewport hacks.
It wasn't clear that this was necessary for EGL, or why. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
832bcc3613
commit
a25caad9e4
1 changed files with 7 additions and 1 deletions
|
|
@ -373,7 +373,13 @@ intelInitContext(struct brw_context *brw,
|
|||
int bo_reuse_mode;
|
||||
struct gl_config visual;
|
||||
|
||||
/* Can't rely on invalidate events, fall back to glViewport hack */
|
||||
/* GLX uses DRI2 invalidate events to handle window resizing.
|
||||
* Unfortunately, EGL does not - libEGL is written in XCB (not Xlib),
|
||||
* which doesn't provide a mechanism for snooping the event queues.
|
||||
*
|
||||
* So EGL still relies on viewport hacks to handle window resizing.
|
||||
* This should go away with DRI3000.
|
||||
*/
|
||||
if (!driContextPriv->driScreenPriv->dri2.useInvalidate) {
|
||||
brw->saved_viewport = functions->Viewport;
|
||||
functions->Viewport = intel_viewport;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue