mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
mesa: initialize variables to silence compiler warnings
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
319b83b3ee
commit
dbefffa5b4
2 changed files with 3 additions and 3 deletions
|
|
@ -3304,7 +3304,7 @@ _mesa_FramebufferTexture(GLenum target, GLenum attachment,
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_framebuffer *fb;
|
||||
struct gl_texture_object *texObj;
|
||||
GLboolean layered;
|
||||
GLboolean layered = GL_FALSE;
|
||||
|
||||
const char *func = "FramebufferTexture";
|
||||
|
||||
|
|
@ -3347,7 +3347,7 @@ _mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_framebuffer *fb;
|
||||
struct gl_texture_object *texObj;
|
||||
GLboolean layered;
|
||||
GLboolean layered = GL_FALSE;
|
||||
|
||||
const char *func = "glNamedFramebufferTexture";
|
||||
|
||||
|
|
|
|||
|
|
@ -1432,7 +1432,7 @@ void GLAPIENTRY
|
|||
_mesa_GetObjectParameterfvARB(GLhandleARB object, GLenum pname,
|
||||
GLfloat *params)
|
||||
{
|
||||
GLint iparams[1]; /* XXX is one element enough? */
|
||||
GLint iparams[1] = {0}; /* XXX is one element enough? */
|
||||
_mesa_GetObjectParameterivARB(object, pname, iparams);
|
||||
params[0] = (GLfloat) iparams[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue