From afe3f9a27aedb85cd882db52ef92d93748bf7d2c Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 29 Jul 2020 17:23:29 +0800 Subject: [PATCH] delete unused value "commit_offset" --- CMCore | 2 +- example/Vulkan/CMakeLists.txt | 2 +- inc/hgl/graph/TileData.h | 1 - src/SceneGraph/TileData.cpp | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMCore b/CMCore index 8af10565..c2d6f456 160000 --- a/CMCore +++ b/CMCore @@ -1 +1 @@ -Subproject commit 8af10565426b4b2913f010d6a811a7495ef06763 +Subproject commit c2d6f456f7c17fe2ab7905a7c4f5b2222b5b611b diff --git a/example/Vulkan/CMakeLists.txt b/example/Vulkan/CMakeLists.txt index 20ab0364..b29a4f48 100644 --- a/example/Vulkan/CMakeLists.txt +++ b/example/Vulkan/CMakeLists.txt @@ -40,7 +40,7 @@ CreateProject(12.RectanglePrimitive RectanglePrimitive.cpp) CreateProject(13.DrawTile DrawTile.cpp) -CreateProject(13.DrawText DrawText.cpp) +CreateProject(14.DrawText DrawText.cpp) IF(SUPPORT_QT_VULKAN) include(QtCommon) diff --git a/inc/hgl/graph/TileData.h b/inc/hgl/graph/TileData.h index 0a59e529..f1161733 100644 --- a/inc/hgl/graph/TileData.h +++ b/inc/hgl/graph/TileData.h @@ -46,7 +46,6 @@ namespace hgl vulkan::Buffer *tile_buffer; /// commit_list; - uint commit_offset; uint8 *commit_ptr; bool CommitTile(TileObject *,const void *,const uint,const int,const int); ///<提交一个Tile数据 diff --git a/src/SceneGraph/TileData.cpp b/src/SceneGraph/TileData.cpp index 710b76a3..df2ed948 100644 --- a/src/SceneGraph/TileData.cpp +++ b/src/SceneGraph/TileData.cpp @@ -53,7 +53,6 @@ namespace hgl tile_buffer=device->CreateBuffer(VK_BUFFER_USAGE_TRANSFER_SRC_BIT,tile_bytes*tile_max_count,nullptr); - commit_offset=0; commit_ptr=nullptr; } @@ -66,7 +65,6 @@ namespace hgl void TileData::BeginCommit() { commit_list.ClearData(); - commit_offset=0; commit_ptr=(uint8 *)tile_buffer->Map(); }