First pass memory tool

This commit is contained in:
2023-10-10 08:55:50 -05:00
parent 2423fd9f70
commit 9ad9995663
11 changed files with 183 additions and 99 deletions

View File

@ -7,6 +7,7 @@
#pragma once
#include "dawnsharedlibs.hpp"
#include "util/memory.hpp"
#include <stb_truetype.h>

View File

@ -47,7 +47,7 @@ TrueTypeFaceTexture::TrueTypeFaceTexture(
// I'd love to just buffer straight to the GPU, but it seems that is a bit
// unstable right now.
uint8_t *buffer = (uint8_t *)memoryFillWithZero(w * h * sizeof(uint8_t));
uint8_t *buffer = (uint8_t *)memoryAllocateEmpty(w * h, sizeof(uint8_t));
size_t offset = 0;
struct TrueTypeCharacter info;