mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
meta: Initialize depth/clear values on declaration.
This helps avoid compiler warningss in the next commit - everything was initialized, but it wasn't obvious to static analysis. Suggested-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
9d53ccccb2
commit
d6d16c0218
1 changed files with 2 additions and 5 deletions
|
|
@ -3487,8 +3487,8 @@ cleartexsubimage_depth_stencil(struct gl_context *ctx,
|
|||
const GLvoid *clearValue,
|
||||
GLint zoffset)
|
||||
{
|
||||
GLint stencilValue;
|
||||
GLfloat depthValue;
|
||||
GLint stencilValue = 0;
|
||||
GLfloat depthValue = 0.0f;
|
||||
GLenum status;
|
||||
|
||||
_mesa_meta_framebuffer_texture_image(ctx, ctx->DrawBuffer,
|
||||
|
|
@ -3519,9 +3519,6 @@ cleartexsubimage_depth_stencil(struct gl_context *ctx,
|
|||
*/
|
||||
memcpy(&depthValue, depthStencilValue, sizeof depthValue);
|
||||
stencilValue = depthStencilValue[1] & 0xff;
|
||||
} else {
|
||||
depthValue = 0.0f;
|
||||
stencilValue = 0;
|
||||
}
|
||||
|
||||
if (texImage->_BaseFormat == GL_DEPTH_STENCIL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue