dri2: declare variables when needed in DRI2ThrottleClient()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-02-05 19:18:14 +01:00
committed by Enrico Weigelt
parent f79a8f5f78
commit d8db7c3908

View File

@@ -731,9 +731,7 @@ DRI2InvalidateDrawable(DrawablePtr pDraw)
Bool
DRI2ThrottleClient(ClientPtr client, DrawablePtr pDraw)
{
DRI2DrawablePtr pPriv;
pPriv = DRI2GetDrawable(pDraw);
DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw);
if (pPriv == NULL)
return FALSE;