Skip to content

Commit

Permalink
Don't try to load old tile textures in Dawntrail
Browse files Browse the repository at this point in the history
These no longer exist, I think there are multiple tile textures now but
that will be implemented later.
  • Loading branch information
redstrate committed Nov 2, 2024
1 parent 96b198b commit 8632786
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions renderer/src/gamerenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ GameRenderer::GameRenderer(Device &device, GameData *data)
m_dummyTex = m_device.createDummyTexture();
m_dummyBuffer = m_device.createDummyBuffer();

m_tileNormal =
m_device.addGameTexture(VK_FORMAT_R8G8B8A8_UNORM, physis_texture_parse(physis_gamedata_extract_file(m_data, "chara/common/texture/-tile_n.tex")));
m_device.nameTexture(m_tileNormal, "chara/common/texture/-tile_n.tex");
m_tileDiffuse = m_device.addGameTexture(VK_FORMAT_R8G8B8A8_UNORM, physis_texture_parse(physis_gamedata_extract_file(m_data, "chara/common/texture/-tile_d.tex")));
m_device.nameTexture(m_tileDiffuse, "chara/common/texture/-tile_d.tex");
if (!m_dawntrailMode) {
m_tileNormal =
m_device.addGameTexture(VK_FORMAT_R8G8B8A8_UNORM, physis_texture_parse(physis_gamedata_extract_file(m_data, "chara/common/texture/-tile_n.tex")));
m_device.nameTexture(m_tileNormal, "chara/common/texture/-tile_n.tex");
m_tileDiffuse =
m_device.addGameTexture(VK_FORMAT_R8G8B8A8_UNORM, physis_texture_parse(physis_gamedata_extract_file(m_data, "chara/common/texture/-tile_d.tex")));
m_device.nameTexture(m_tileDiffuse, "chara/common/texture/-tile_d.tex");
}

size_t vertexSize = planeVertices.size() * sizeof(glm::vec4);
m_planeVertexBuffer = m_device.createBuffer(vertexSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT);
Expand Down

0 comments on commit 8632786

Please sign in to comment.