Skip to content

Commit

Permalink
Changed to rgba8 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
MCRcortex committed Sep 15, 2023
1 parent 84ac9d3 commit 90d6a11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void resize(int width, int height) {
private void setupTextures(int width, int height, boolean allowsLinear) {
var ctx = Vulkanite.INSTANCE.getCtx();
int glfmt = internalFormat.getGlFormat();
glfmt = (glfmt==GL_RGBA)?GL_RGBA32F:glfmt;
glfmt = (glfmt==GL_RGBA)?GL_RGBA8:glfmt;
int vkfmt = gl2vkFormat(glfmt);
vgMainTexture = ctx.memory.createSharedImage(width, height, 1, vkfmt, glfmt, VK_IMAGE_USAGE_STORAGE_BIT , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
setupTexture(getMainTexture(), width, height, allowsLinear);
Expand Down

0 comments on commit 90d6a11

Please sign in to comment.