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:
Stefan Schmidt 2014-09-04 13:16:30 +02:00
parent e67b52c514
commit edcee427fd
1 changed files with 1 additions and 2 deletions

View File

@ -396,8 +396,6 @@ _drm_init(void)
// only do this on new kernels = let's say 3.14 and up. 3.16 definitely
// works
{
Eina_Bool ok = EINA_FALSE;
FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
if (fp)
{
@ -414,6 +412,7 @@ _drm_init(void)
}
if (!ok) return 0;
}
ok = EINA_FALSE;
snprintf(buf, sizeof(buf), "/dev/dri/card1");
if (stat(buf, &st) == 0)