aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/ggi/include
diff options
context:
space:
mode:
authorJon Taylor <[email protected]>1999-08-24 02:03:34 +0000
committerJon Taylor <[email protected]>1999-08-24 02:03:34 +0000
commit668b4ab2fa06c27d423a79f4fe93ae1af62252c7 (patch)
treea8a8990d238ea71db1f6028ae8a3850069f305ba /src/mesa/drivers/ggi/include
parent6583efcfe9bb139d03b0a35ff76d180268574ce2 (diff)
*** empty log message ***
Diffstat (limited to 'src/mesa/drivers/ggi/include')
-rw-r--r--src/mesa/drivers/ggi/include/ggi/mesa/ggimesa.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa.h b/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa.h
index c4611fa01b5..d4d5040b559 100644
--- a/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa.h
+++ b/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa.h
@@ -50,14 +50,15 @@ struct ggi_mesa_context
GLcontext *gl_ctx;
GLvisual *gl_vis;
GLframebuffer *gl_buffer;
-
+
ggi_visual_t ggi_vis;
ggi_coord origin;
int flip_y;
int width, height, stride; /* Stride is in pixels */
ggi_pixel color; /* Current color or index*/
ggi_pixel clearcolor;
- void *lfb; /* Linear frame buffer*/
+ void *lfb[2]; /* Linear frame buffers */
+ int active_buffer;
int viewport_init;
};
@@ -79,7 +80,7 @@ extern GGIMesaContext GGIMesa; /* The current context */
#define VIS (GGICTX->ggi_vis)
#define FLIP(y) (GGICTX->flip_y-(y))
-#define LFB(type,x,y) ((type *)GGICTX->lfb + (x) + (y) * GGICTX->stride)
+#define LFB(type,x,y) ((type *)GGICTX->lfb[0] + (x) + (y) * GGICTX->stride)
#define CTX_OPMESA(ctx) \
((struct mesa_ext *)LIBGGI_EXT(((GGIMesaContext)ctx->DriverCtx)->ggi_vis, \