mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dri2: declare variables when needed in create_buffer()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
e30646b37d
commit
ceb272462b
@@ -466,14 +466,12 @@ static DRI2BufferPtr
|
||||
create_buffer(DRI2ScreenPtr ds, DrawablePtr pDraw,
|
||||
unsigned int attachment, unsigned int format)
|
||||
{
|
||||
DRI2BufferPtr buffer;
|
||||
if (ds->CreateBuffer2)
|
||||
buffer = (*ds->CreateBuffer2)(GetScreenPrime(pDraw->pScreen,
|
||||
DRI2GetDrawable(pDraw)->prime_id),
|
||||
pDraw, attachment, format);
|
||||
return ds->CreateBuffer2(GetScreenPrime(pDraw->pScreen,
|
||||
DRI2GetDrawable(pDraw)->prime_id),
|
||||
pDraw, attachment, format);
|
||||
else
|
||||
buffer = (*ds->CreateBuffer)(pDraw, attachment, format);
|
||||
return buffer;
|
||||
return ds->CreateBuffer(pDraw, attachment, format);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user