egl/haiku: coding style fixes
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Jun 2015 12:08:00 +0000 (13:08 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 12 Jun 2015 14:17:53 +0000 (15:17 +0100)
Cc: Alexander von Gluck IV <kallisti5@unixzen.com>
Acked-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/haiku/egl_haiku.cpp

index da72895ac041984b901fdaf54d58dc5a4f5e08f2..3d00e47c8e63f06b1faffc11325f5e9c9cbe8559 100644 (file)
@@ -284,10 +284,10 @@ haiku_make_current(_EGLDriver* drv, _EGLDisplay* dpy, _EGLSurface *dsurf,
 {
        CALLED();
 
-       struct haiku_egl_context* cont=haiku_egl_context(ctx);
-       struct haiku_egl_surface* surf=haiku_egl_surface(dsurf);
+       struct haiku_egl_context* cont = haiku_egl_context(ctx);
+       struct haiku_egl_surface* surf = haiku_egl_surface(dsurf);
        _EGLContext *old_ctx;
-    _EGLSurface *old_dsurf, *old_rsurf;
+       _EGLSurface *old_dsurf, *old_rsurf;
 
        if (!_eglBindContext(ctx, dsurf, rsurf, &old_ctx, &old_dsurf, &old_rsurf))
                return EGL_FALSE;
@@ -302,7 +302,8 @@ extern "C"
 EGLBoolean
 haiku_swap_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf)
 {
-       struct haiku_egl_surface* surface=haiku_egl_surface(surf);
+       struct haiku_egl_surface* surface = haiku_egl_surface(surf);
+
        surface->gl->SwapBuffers();
        //gl->Render();
        return EGL_TRUE;