mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 17:50:39 +02:00
dri3: Return the current swap interval from glXGetSwapIntervalMESA().
We were caching only the value set with glXSwapIntervalSGI(), missing out on the default setting of the swap interval by the loader. This fixes glxgears's warning about being vblank synchronized by default. Fixes:9777c4234b("loader: drop the [gs]et_swap_interval callbacks") Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commitedc7deec42)
This commit is contained in:
parent
12ab2d0003
commit
2b50357c0f
2 changed files with 1 additions and 3 deletions
|
|
@ -642,7 +642,6 @@ dri3_set_swap_interval(__GLXDRIdrawable *pdraw, int interval)
|
|||
break;
|
||||
}
|
||||
|
||||
priv->swap_interval = interval;
|
||||
loader_dri3_set_swap_interval(&priv->loader_drawable, interval);
|
||||
|
||||
return 0;
|
||||
|
|
@ -659,7 +658,7 @@ dri3_get_swap_interval(__GLXDRIdrawable *pdraw)
|
|||
|
||||
struct dri3_drawable *priv = (struct dri3_drawable *) pdraw;
|
||||
|
||||
return priv->swap_interval;
|
||||
return priv->loader_drawable.swap_interval;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -117,7 +117,6 @@ struct dri3_context
|
|||
struct dri3_drawable {
|
||||
__GLXDRIdrawable base;
|
||||
struct loader_dri3_drawable loader_drawable;
|
||||
int swap_interval;
|
||||
|
||||
/* LIBGL_SHOW_FPS support */
|
||||
uint64_t previous_ust;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue