mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
savage: Silence compiler warnings.
This commit is contained in:
parent
ca02109e91
commit
7e3825abdb
3 changed files with 6 additions and 3 deletions
|
|
@ -436,7 +436,7 @@ savageCreateContext( const __GLcontextModes *mesaVis,
|
|||
if (ctx->Const.MaxTextureLevels <= 6) { /*spec requires at least 64x64*/
|
||||
__driUtilMessage("Not enough texture memory. "
|
||||
"Falling back to indirect rendering.");
|
||||
Xfree(imesa);
|
||||
_mesa_free(imesa);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -574,7 +574,7 @@ savageDestroyContext(__DRIcontextPrivate *driContextPriv)
|
|||
_mesa_destroy_context(imesa->glCtx);
|
||||
|
||||
/* no longer use vertex_dma_buf*/
|
||||
Xfree(imesa);
|
||||
_mesa_free(imesa);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -337,6 +337,8 @@ static void savageDDClear( GLcontext *ctx, GLbitfield mask )
|
|||
GLint ch = ctx->DrawBuffer->_Ymax - cy;
|
||||
|
||||
/* XXX FIX ME: the cx,cy,cw,ch vars are currently ignored! */
|
||||
(void) ch;
|
||||
(void) cw;
|
||||
|
||||
if (SAVAGE_DEBUG & DEBUG_VERBOSE_MSG)
|
||||
fprintf (stderr, "%s\n", __FUNCTION__);
|
||||
|
|
|
|||
|
|
@ -435,7 +435,8 @@ do { \
|
|||
|
||||
#define LOCAL_VARS(n) \
|
||||
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
|
||||
GLuint color[n], spec[n]; \
|
||||
GLuint color[n] = { 0 }; \
|
||||
GLuint spec[n] = { 0 }; \
|
||||
GLuint coloroffset = \
|
||||
((imesa->skip & SAVAGE_SKIP_W) ? 3 : 4); \
|
||||
GLboolean specoffset = \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue