mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 12:48:32 +09:00
[Perf|Fix] (MG_Backend/DirectGLES): Clear dirty after buffer sync.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user