[Perf|Fix] (MG_Backend/DirectGLES): Clear dirty after buffer sync.

This commit is contained in:
BZLZHH
2025-11-29 22:57:40 +08:00
parent a9c49cbc77
commit 51554eac7c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)
project("MobileGL")
option(MOBILEGL_FORCE_RELEASE_OPT "Enable Release optimization flags in Debug build" OFF)
option(MOBILEGL_FORCE_RELEASE_OPT "Enable Release optimization flags in Debug build" ON)
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" OR MOBILEGL_FORCE_RELEASE_OPT)
include(CheckIPOSupported)
@@ -66,6 +66,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
break;
}
stateBufferObject->ClearDirty();
m_prevBufferSize = bufferSize;
}