From c6c126091bcc2490ae7819db00b0cc0a1201a2b7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 14 Sep 2009 22:05:16 +0100 Subject: Indentation in glamo_state.c --- src/mesa/drivers/dri/glamo/glamo_state.c | 107 ++++++++++++++++--------------- 1 file changed, 54 insertions(+), 53 deletions(-) diff --git a/src/mesa/drivers/dri/glamo/glamo_state.c b/src/mesa/drivers/dri/glamo/glamo_state.c index 5e93f962e6..2cb15887f9 100644 --- a/src/mesa/drivers/dri/glamo/glamo_state.c +++ b/src/mesa/drivers/dri/glamo/glamo_state.c @@ -59,98 +59,99 @@ static void glamoResizeBuffers(GLcontext *ctx, struct gl_framebuffer *fb, GLuint width, GLuint height) { - struct glamo_framebuffer *glamo_fb = (struct glamo_framebuffer *)fb; - int i; + struct glamo_framebuffer *glamo_fb = (struct glamo_framebuffer *)fb; + int i; - _mesa_resize_framebuffer(ctx, fb, width, height); + _mesa_resize_framebuffer(ctx, fb, width, height); - fb->Initialized = GL_TRUE; /* XXX remove someday */ + fb->Initialized = GL_TRUE; /* XXX remove someday */ - if (fb->Name != 0) { - return; - } + if (fb->Name != 0) { + return; + } - /* Make sure all window system renderbuffers are up to date */ - for (i = 0; i < 2; i++) { - struct gl_renderbuffer *rb = &glamo_fb->color_rb[i]->base; + /* Make sure all window system renderbuffers are up to date */ + for (i = 0; i < 2; i++) { + struct gl_renderbuffer *rb = &glamo_fb->color_rb[i]->base; - /* only resize if size is changing */ - if (rb && (rb->Width != width || rb->Height != height)) { - rb->AllocStorage(ctx, rb, rb->InternalFormat, - width, height); - } - } + /* only resize if size is changing */ + if (rb && (rb->Width != width || rb->Height != height)) { + rb->AllocStorage(ctx, rb, rb->InternalFormat, + width, height); + } + } } static void glamoClear(GLcontext *ctx, GLbitfield mask) { - printf("glamoClear\n"); fflush(stdout); + printf("glamoClear (%f %f %f %f)\n", ctx->Color.ClearColor[0], + ctx->Color.ClearColor[1], ctx->Color.ClearColor[2], + ctx->Color.ClearColor[3]); fflush(stdout); } static void glamoClearColor(GLcontext *ctx, const GLfloat color[4]) { - printf("glamoClearColor\n"); fflush(stdout); + printf("glamoClearColor (%f %f %f %f)\n", color[0], color[1], color[2], + color[3]); fflush(stdout); } static void glamoShadeModel(GLcontext *ctx, GLenum mode) { - printf("glamoShadeModel\n"); fflush(stdout); + printf("glamoShadeModel\n"); fflush(stdout); } static void glamoViewport(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - printf("glamoViewport\n"); fflush(stdout); + printf("glamoViewport\n"); fflush(stdout); } static void glamoUpdateState(GLcontext *ctx, GLbitfield new_state) { - printf("glamoUpdateState\n"); + printf("glamoUpdateState\n"); } static void glamoFlush(GLcontext *ctx) { - printf("glamoFlush\n"); + printf("glamoFlush\n"); } void glamoInitStateFuncs(GLcontext *ctx) { - ctx->Driver.UpdateState = glamoUpdateState; - ctx->Driver.Clear = glamoClear; - ctx->Driver.ClearColor = glamoClearColor; - ctx->Driver.ClearDepth = NULL; - ctx->Driver.ClearStencil = NULL; - ctx->Driver.AlphaFunc = NULL; - ctx->Driver.BlendFuncSeparate = NULL; - ctx->Driver.ColorMask = NULL; - ctx->Driver.CullFace = NULL; - ctx->Driver.DepthMask = NULL; - ctx->Driver.DepthFunc = NULL; - ctx->Driver.DepthRange = NULL; - ctx->Driver.DrawBuffer = NULL; - ctx->Driver.Enable = NULL; - ctx->Driver.FrontFace = NULL; - ctx->Driver.Fogfv = NULL; - ctx->Driver.Hint = NULL; - ctx->Driver.Lightfv = NULL; - ctx->Driver.LogicOpcode = NULL; - ctx->Driver.PolygonMode = NULL; - ctx->Driver.PolygonStipple = NULL; - ctx->Driver.ReadBuffer = NULL; - ctx->Driver.RenderMode = NULL; - ctx->Driver.Scissor = NULL; - ctx->Driver.ShadeModel = glamoShadeModel; - ctx->Driver.LightModelfv = NULL; - ctx->Driver.Viewport = glamoViewport; - ctx->Driver.ResizeBuffers = glamoResizeBuffers; - ctx->Driver.Flush = glamoFlush; + ctx->Driver.UpdateState = glamoUpdateState; + ctx->Driver.Clear = glamoClear; + ctx->Driver.ClearColor = glamoClearColor; + ctx->Driver.ClearDepth = NULL; + ctx->Driver.ClearStencil = NULL; + ctx->Driver.AlphaFunc = NULL; + ctx->Driver.BlendFuncSeparate = NULL; + ctx->Driver.ColorMask = NULL; + ctx->Driver.CullFace = NULL; + ctx->Driver.DepthMask = NULL; + ctx->Driver.DepthFunc = NULL; + ctx->Driver.DepthRange = NULL; + ctx->Driver.DrawBuffer = NULL; + ctx->Driver.Enable = NULL; + ctx->Driver.FrontFace = NULL; + ctx->Driver.Fogfv = NULL; + ctx->Driver.Hint = NULL; + ctx->Driver.Lightfv = NULL; + ctx->Driver.LogicOpcode = NULL; + ctx->Driver.PolygonMode = NULL; + ctx->Driver.PolygonStipple = NULL; + ctx->Driver.ReadBuffer = NULL; + ctx->Driver.RenderMode = NULL; + ctx->Driver.Scissor = NULL; + ctx->Driver.ShadeModel = glamoShadeModel; + ctx->Driver.LightModelfv = NULL; + ctx->Driver.Viewport = glamoViewport; + ctx->Driver.ResizeBuffers = glamoResizeBuffers; + ctx->Driver.Flush = glamoFlush; } - -/* kate: space-indent on; indent-width 3; mixedindent off; indent-mode cstyle; */ -- cgit v1.2.3