mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 08:10:29 +01:00
gallium: Fix build on Windows.
This commit is contained in:
parent
0fe428f1df
commit
9387784fbf
2 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
#include "pipe/p_util.h"
|
||||
#include "pb_buffer.h"
|
||||
#include "pipe/p_util.h"
|
||||
|
||||
|
||||
struct pb_user_buffer
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "pipe/p_util.h"
|
||||
#include "pb_buffer.h"
|
||||
|
||||
|
||||
|
|
@ -61,7 +62,7 @@ malloc_buffer(struct pb_buffer *buf)
|
|||
static void
|
||||
malloc_buffer_destroy(struct pb_buffer *buf)
|
||||
{
|
||||
free(malloc_buffer(buf)->data);
|
||||
FREE(malloc_buffer(buf)->data);
|
||||
FREE(buf);
|
||||
}
|
||||
|
||||
|
|
@ -119,7 +120,7 @@ pb_malloc_buffer_create( unsigned alignment,
|
|||
buf->base.base.usage = usage;
|
||||
buf->base.base.size = size;
|
||||
|
||||
buf->data = malloc(size);
|
||||
buf->data = MALLOC(size);
|
||||
if(!buf->data) {
|
||||
FREE(buf);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue