Pārlūkot izejas kodu

Fix for writing the wrong sysfs variable when blanking

tags/the_perfect_frag
Jon Smirl pirms 20 gadiem
vecāks
revīzija
bd565e4bb7
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      src/mesa/drivers/dri/fb/fb_egl.c

+ 3
- 1
src/mesa/drivers/dri/fb/fb_egl.c Parādīt failu

@@ -720,7 +720,7 @@ err:
printf("chown all fb sysfs attrib to allow write - %s\n", buffer);
return EGL_FALSE;
}
snprintf(buffer, sizeof(buffer), "%d", (m == EGL_NO_MODE_MESA ? VESA_POWERDOWN : VESA_HSYNC_SUSPEND));
snprintf(buffer, sizeof(buffer), "%d", (m == EGL_NO_MODE_MESA ? VESA_POWERDOWN : VESA_VSYNC_SUSPEND));
fputs(buffer, file);
fclose(file);
@@ -745,6 +745,8 @@ err:
fputs(buffer, file);
fclose(file);

snprintf(buffer, sizeof(buffer), "%s/%s/blank", sysfs, scrn->fb);
file = fopen(buffer, "r+");
if (!file)
goto err;

Notiek ielāde…
Atcelt
Saglabāt