Skip to content

Commit

Permalink
Viewer: fix destroying uninitialized texture handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcy committed Jul 25, 2020
1 parent e583167 commit 18a24a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/viewer_atlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ struct
bgfx::VertexLayout atlasVertexLayout;
bgfx::VertexLayout blitVertexLayout;
bgfx::VertexLayout wireVertexLayout;
bgfx::TextureHandle faceColorsTexture, faceStretchTexture;
bgfx::TextureHandle faceColorsTexture = BGFX_INVALID_HANDLE;
bgfx::TextureHandle faceStretchTexture = BGFX_INVALID_HANDLE;
std::vector<float> faceColorsTextureData, faceStretchTextureData;
uint16_t faceDataTextureSize[2];
// Blit.
Expand Down

0 comments on commit 18a24a5

Please sign in to comment.