mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 18:01:30 +00:00
Allow vulkan_draw to compile when optimizing
Even though it's nowhere near done
This commit is contained in:
parent
29b1d6baf8
commit
3144443a82
1 changed files with 15 additions and 3 deletions
|
@ -54,10 +54,22 @@
|
|||
|
||||
#include "r_internal.h"
|
||||
|
||||
static qpic_t *
|
||||
pic_data (const char *name, int w, int h, const byte *data)
|
||||
{
|
||||
qpic_t *pic;
|
||||
|
||||
pic = malloc (field_offset (qpic_t, data[w * h]));
|
||||
pic->width = w;
|
||||
pic->height = h;
|
||||
memcpy (pic->data, data, pic->width * pic->height);
|
||||
return pic;
|
||||
}
|
||||
|
||||
qpic_t *
|
||||
vulkan_Draw_MakePic (int width, int height, const byte *data)
|
||||
{
|
||||
return 0;
|
||||
return pic_data (0, width, height, data);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -68,13 +80,13 @@ vulkan_Draw_DestroyPic (qpic_t *pic)
|
|||
qpic_t *
|
||||
vulkan_Draw_PicFromWad (const char *name)
|
||||
{
|
||||
return 0;
|
||||
return pic_data (0, 1, 1, (const byte *)"");
|
||||
}
|
||||
|
||||
qpic_t *
|
||||
vulkan_Draw_CachePic (const char *path, qboolean alpha)
|
||||
{
|
||||
return 0;
|
||||
return pic_data (0, 1, 1, (const byte *)"");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue