Added texture data format support

This commit is contained in:
YourWishes committed 2023-06-20 08:35:28 -07:00
1 parent 811271dc5d
commit 9574e9a3e9
32 files changed
+189 -57

No files matched your search

@@ -77,7 +77,7 @@ TrueTypeFaceTexture::TrueTypeFaceTexture(
y += face->glyph->bitmap.rows;
}
this->texture.setSize(w, h, TEXTURE_FORMAT_R);
this->texture.setSize(w, h, TEXTURE_FORMAT_R, TEXTURE_DATA_FORMAT_UNSIGNED_BYTE);
this->texture.buffer(buffer);
memoryFree(buffer);
}