summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-09-14 22:05:16 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2010-02-18 15:39:23 +0100
commit1047cee792542775db4452c902e97230693398dd (patch)
tree57223945d4a678eef3bc20c92a6bf48627155ce7
parent5944bcc904b37b1480b9af4b62ae873c4f59914a (diff)
Indentation in glamo_state.c
-rw-r--r--src/mesa/drivers/dri/glamo/glamo_state.c107
1 files 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; */