summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kmscube.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kmscube.c b/kmscube.c
index 8057e66..fcfd902 100644
--- a/kmscube.c
+++ b/kmscube.c
@@ -113,11 +113,10 @@ int main(int argc, char *argv[])
return -1;
}
- if (mode == SMOOTH) {
+ if (mode == SMOOTH)
egl = init_cube_smooth(gbm);
- } else {
+ else
egl = init_cube_tex(gbm, mode);
- }
if (!egl) {
printf("failed to initialize EGL\n");