mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 06:50:37 +02:00
Merge branch 'mesa_7_6_branch'
This commit is contained in:
commit
0ea575d721
2 changed files with 6 additions and 1 deletions
|
|
@ -385,6 +385,7 @@ intel_create_renderbuffer(GLenum intFormat)
|
|||
default:
|
||||
_mesa_problem(NULL,
|
||||
"Unexpected intFormat in intel_create_renderbuffer");
|
||||
_mesa_free(irb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -587,8 +587,12 @@ _mesa_make_temp_chan_image(GLcontext *ctx, GLuint dims,
|
|||
/* unpack and transfer the source image */
|
||||
tempImage = (GLchan *) _mesa_malloc(srcWidth * srcHeight * srcDepth
|
||||
* components * sizeof(GLchan));
|
||||
if (!tempImage)
|
||||
if (!tempImage) {
|
||||
if (freeSrcImage) {
|
||||
_mesa_free((void *) srcAddr);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dst = tempImage;
|
||||
for (img = 0; img < srcDepth; img++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue