dri2: declare variables where needed in DRI2BlockClient()

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:39:50 +01:00
committed by Enrico Weigelt
parent 654b491d58
commit a21c9ef420

View File

@@ -750,9 +750,7 @@ DRI2ThrottleClient(ClientPtr client, DrawablePtr pDraw)
void
DRI2BlockClient(ClientPtr client, DrawablePtr pDraw)
{
DRI2DrawablePtr pPriv;
pPriv = DRI2GetDrawable(pDraw);
DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw);
if (pPriv == NULL)
return;