mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dri2: declare variables when needed in DRI2InvalidateDrawable()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f23600ee4d
commit
ebe62981a6
@@ -707,13 +707,13 @@ static void
|
||||
DRI2InvalidateDrawable(DrawablePtr pDraw)
|
||||
{
|
||||
DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw);
|
||||
DRI2DrawableRefPtr ref;
|
||||
|
||||
if (!pPriv || !pPriv->needInvalidate)
|
||||
return;
|
||||
|
||||
pPriv->needInvalidate = FALSE;
|
||||
|
||||
DRI2DrawableRefPtr ref;
|
||||
xorg_list_for_each_entry(ref, &pPriv->reference_list, link)
|
||||
ref->invalidate(pDraw, ref->priv, ref->id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user