mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Refactor CC_NEW/CC_DELETE (#10810)
* replace CC_NEW/CC_DELETE with ccnew/delete
This commit is contained in:
@@ -41,7 +41,7 @@ CCWGPUQueryPool::~CCWGPUQueryPool() {
|
||||
|
||||
void CCWGPUQueryPool::doInit(const QueryPoolInfo & /*info*/) {
|
||||
CCWGPUDevice *device = CCWGPUDevice::getInstance();
|
||||
_gpuQueryPool = CC_NEW(CCWGPUQueryPoolObject);
|
||||
_gpuQueryPool = ccnew CCWGPUQueryPoolObject;
|
||||
_gpuQueryPool->type = _type;
|
||||
_gpuQueryPool->maxQueryObjects = _maxQueryObjects;
|
||||
_gpuQueryPool->idPool.resize(_maxQueryObjects, 0U);
|
||||
@@ -54,7 +54,7 @@ void CCWGPUQueryPool::doInit(const QueryPoolInfo & /*info*/) {
|
||||
void CCWGPUQueryPool::doDestroy() {
|
||||
if (_gpuQueryPool) {
|
||||
//cmdFuncGLES3DestroyQuery(GLES3Device::getInstance(), _gpuQueryPool);
|
||||
CC_DELETE(_gpuQueryPool);
|
||||
delete _gpuQueryPool;
|
||||
_gpuQueryPool = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user