Added texture data format support

This commit is contained in:
2023-06-20 08:35:28 -07:00
parent 811271dc5d
commit 9574e9a3e9
32 changed files with 189 additions and 57 deletions

View File

@ -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);
}