mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dri2: declare variables when needed in DRI2GetScreen()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
ceb272462b
commit
a63c86d463
@@ -190,17 +190,15 @@ DRI2GetScreen(ScreenPtr pScreen)
|
||||
static ScreenPtr
|
||||
GetScreenPrime(ScreenPtr primary, int prime_id)
|
||||
{
|
||||
ScreenPtr secondary;
|
||||
if (prime_id == 0) {
|
||||
if (prime_id == 0)
|
||||
return primary;
|
||||
}
|
||||
xorg_list_for_each_entry(secondary, &primary->secondary_list, secondary_head) {
|
||||
DRI2ScreenPtr ds;
|
||||
|
||||
ScreenPtr secondary;
|
||||
xorg_list_for_each_entry(secondary, &primary->secondary_list, secondary_head) {
|
||||
if (!secondary->is_offload_secondary)
|
||||
continue;
|
||||
|
||||
ds = DRI2GetScreen(secondary);
|
||||
DRI2ScreenPtr ds = DRI2GetScreen(secondary);
|
||||
if (ds == NULL)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user