summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-08-16 18:08:13 +0100
committerEmil Velikov <[email protected]>2016-10-14 12:41:48 +0100
commit31ef5d4452a208ca13e26f0646f37b25c2a2eb26 (patch)
treeb42cfac9f40a397dda06c4f44a7c0075b4b737e7
parentd0155bcbe8eada0386275c382a4b0421dc8418f6 (diff)
egl/surfaceless: trivial coding style fixes
Remove a few gratious blank lines and use the correct level of indentation. Reviewed-by: Gurchetan Singh <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h1
-rw-r--r--src/egl/drivers/dri2/platform_surfaceless.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index b1cbf944dda..f51c3c6bbdf 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -304,7 +304,6 @@ struct dri2_egl_surface
__DRIimage *front;
unsigned int visual;
#endif
-
};
struct dri2_egl_config
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index c75a895e616..f613c03d3f0 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -180,15 +180,12 @@ dri2_surfaceless_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp,
static EGLBoolean
surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
{
-
struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy);
-
static const unsigned int visuals[3][4] = {
{ 0xff0000, 0xff00, 0xff, 0xff000000 }, // ARGB8888
{ 0xff0000, 0xff00, 0xff, 0x0 }, // RGB888
{ 0xf800, 0x7e0, 0x1f, 0x0 }, // RGB565
};
-
unsigned int count, i, j;
count = 0;
@@ -205,7 +202,7 @@ surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
}
if (!count)
- _eglLog(_EGL_DEBUG, "Can't create surfaceless visuals");
+ _eglLog(_EGL_DEBUG, "Can't create surfaceless visuals");
return (count != 0);
}