First pass memory tool

This commit is contained in:
YourWishes committed 2023-10-10 08:55:50 -05:00
1 parent f752ad9a59
commit a372fe4374
11 files changed
+183 -99

No files matched your search

+1
View File
@@ -7,6 +7,7 @@
#pragma once
#include "dawnsharedlibs.hpp"
#include "util/memory.hpp"
#include <stb_truetype.h>
@@ -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;