mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts: progs/trivial/tri.c
This commit is contained in:
commit
87a6fe57e8
2 changed files with 9 additions and 12 deletions
|
|
@ -57,16 +57,13 @@ static void Reshape(int width, int height)
|
|||
|
||||
static void Key(unsigned char key, int x, int y)
|
||||
{
|
||||
|
||||
switch (key) {
|
||||
case 27:
|
||||
glutDestroyWindow(win);
|
||||
exit(0);
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
switch (key) {
|
||||
case 27:
|
||||
exit(0);
|
||||
default:
|
||||
glutPostRedisplay();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
static void Draw(void)
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ st_FreeTextureImageData(GLcontext * ctx, struct gl_texture_image *texImage)
|
|||
}
|
||||
|
||||
if (texImage->Data) {
|
||||
free(texImage->Data);
|
||||
_mesa_align_free(texImage->Data);
|
||||
texImage->Data = NULL;
|
||||
}
|
||||
}
|
||||
|
|
@ -541,7 +541,7 @@ st_TexImage(GLcontext * ctx,
|
|||
sizeInBytes = depth * dstRowStride * postConvHeight;
|
||||
}
|
||||
|
||||
texImage->Data = malloc(sizeInBytes);
|
||||
texImage->Data = _mesa_align_malloc(sizeInBytes, 16);
|
||||
}
|
||||
|
||||
if (!texImage->Data) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue