mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01: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>
This commit is contained in:
parent
82f6a746e8
commit
edc7deec42
2 changed files with 1 additions and 3 deletions
|
|
@ -649,7 +649,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;
|
||||
|
|
@ -666,7 +665,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