Skip to content

Commit

Permalink
Fixed an update to bgfx breaking the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ataulien committed Nov 24, 2016
1 parent 55c56c6 commit 281901b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bgfx-cmake
2 changes: 1 addition & 1 deletion src/content/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Handle::TextureHandle TextureAllocator::loadTextureRGBA8(const std::vector<uint8
//TODO: Avoid the second copy here
const bgfx::Memory* mem = bgfx::alloc(data.size());
memcpy(mem->data, data.data(), data.size());
bgfx::TextureHandle bth = bgfx::createTexture2D(width, height, false, 1, bgfx::TextureFormat::RGBA8, BGFX_TEXTURE_NONE, mem);
bgfx::TextureHandle bth = bgfx::createTexture2D(width, height, 1, bgfx::TextureFormat::RGBA8, BGFX_TEXTURE_NONE, mem);

// Free imange
//stbi_image_free(out);
Expand Down
2 changes: 1 addition & 1 deletion src/engine/Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void Platform::windowSizeEvent(int width, int height)

int32_t Platform::run(int argc, char** argv)
{

return 0;
}

void Platform::mainLoop(std::promise<int32_t>&& returnValue, int argc, char** argv)
Expand Down

0 comments on commit 281901b

Please sign in to comment.