forked from enlightenment/efl
ecore_x_vsync: Remove ahadowign variable.
Also make sure we reset ok to FALSE here to keep the logic below correct. This was actually a vlaid local shadow problem.
This commit is contained in:
parent
e67b52c514
commit
edcee427fd
|
@ -396,8 +396,6 @@ _drm_init(void)
|
||||||
// only do this on new kernels = let's say 3.14 and up. 3.16 definitely
|
// only do this on new kernels = let's say 3.14 and up. 3.16 definitely
|
||||||
// works
|
// works
|
||||||
{
|
{
|
||||||
Eina_Bool ok = EINA_FALSE;
|
|
||||||
|
|
||||||
FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
|
FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
|
||||||
if (fp)
|
if (fp)
|
||||||
{
|
{
|
||||||
|
@ -414,6 +412,7 @@ _drm_init(void)
|
||||||
}
|
}
|
||||||
if (!ok) return 0;
|
if (!ok) return 0;
|
||||||
}
|
}
|
||||||
|
ok = EINA_FALSE;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "/dev/dri/card1");
|
snprintf(buf, sizeof(buf), "/dev/dri/card1");
|
||||||
if (stat(buf, &st) == 0)
|
if (stat(buf, &st) == 0)
|
||||||
|
|
Loading…
Reference in New Issue