Lots of misc. bugfixes to bring GGIMesa in sync with the latest Mesa sources.
This commit is contained in:
@@ -389,7 +389,7 @@ triangle_func ggiGetTriangleFunc(GLcontext *ctx)
|
||||
if (ctx->Stencil.Enabled) return NULL;
|
||||
if (ctx->Polygon.SmoothFlag) return NULL;
|
||||
if (ctx->Polygon.StippleFlag) return NULL;
|
||||
if (ctx->Texture.Enabled) return NULL;
|
||||
if (ctx->Texture.ReallyEnabled) return NULL;
|
||||
if (ctx->Light.ShadeModel==GL_SMOOTH) return NULL;
|
||||
if (ctx->Depth.Test && ctx->Depth.Func != GL_LESS) return NULL;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id: fbdev_mode.c,v 1.4 2000/01/07 08:34:44 jtaylor Exp $
|
||||
/* $Id: fbdev_mode.c,v 1.5 2000/10/28 10:02:44 jtaylor Exp $
|
||||
******************************************************************************
|
||||
|
||||
display-fbdev-mesa
|
||||
@@ -80,7 +80,7 @@ static int do_setmode(ggi_visual *vis)
|
||||
priv->have_accel = 0;
|
||||
for (id = 1; GGIMesa_fbdev_getapi(vis, id, libname, libargs) == 0; id++)
|
||||
{
|
||||
if (_ggiOpenDL(vis, libname, libargs, NULL) == NULL)
|
||||
if (_ggiOpenDL(vis, libname, libargs, NULL) == 0)
|
||||
{
|
||||
fprintf(stderr, "display-fbdev-mesa: Error opening the "
|
||||
"%s (%s) library.\n", libname, libargs);
|
||||
@@ -91,7 +91,7 @@ static int do_setmode(ggi_visual *vis)
|
||||
}
|
||||
|
||||
if (priv->oldpriv->accel &&
|
||||
_ggiOpenDL(vis, priv->accel, NULL, NULL) != NULL) {
|
||||
_ggiOpenDL(vis, priv->accel, NULL, NULL) != 0) {
|
||||
priv->have_accel = 1;
|
||||
}
|
||||
else
|
||||
|
@@ -370,7 +370,7 @@ int GGIMesaSetVisual(GGIMesaContext ctx, ggi_visual_t vis,
|
||||
_mesa_destroy_visual(ctx->gl_vis);
|
||||
|
||||
if (ctx->gl_buffer)
|
||||
gl_destroy_framebuffer(ctx->gl_buffer);
|
||||
_mesa_destroy_framebuffer(ctx->gl_buffer);
|
||||
|
||||
info.rgb_flag = rgb_flag;
|
||||
info.db_flag = db_flag;
|
||||
@@ -459,7 +459,7 @@ int GGIMesaSetVisual(GGIMesaContext ctx, ggi_visual_t vis,
|
||||
ctx->lfb[1] = malloc(ctx->stride * ctx->height);
|
||||
ctx->bufsize = (ctx->stride * ctx->height);
|
||||
|
||||
ctx->gl_ctx->Visual = ctx->gl_vis;
|
||||
ctx->gl_ctx->Visual = *ctx->gl_vis;
|
||||
ctx->gl_ctx->Pixel.ReadBuffer =
|
||||
ctx->gl_ctx->Color.DrawBuffer = (db_flag) ? GL_BACK : GL_FRONT;
|
||||
|
||||
|
@@ -14,7 +14,7 @@ struct fbdev_priv_mesa
|
||||
char *accel;
|
||||
int have_accel;
|
||||
void *accelpriv;
|
||||
fbdev_hook *oldpriv; /* Hooks back to the LibGGI fbdev target's private data */
|
||||
ggi_fbdev_priv *oldpriv; /* Hooks back to the LibGGI fbdev target's private data */
|
||||
};
|
||||
|
||||
#endif /* _GGIMESA_DISPLAY_FBDEV_H */
|
||||
|
Reference in New Issue
Block a user