mirror of https://github.com/axmolengine/axmol.git
fix compile error
This commit is contained in:
parent
3a3924f76f
commit
0825386827
cocos/renderer/backend/opengl
|
@ -24,14 +24,16 @@ DeviceGL::DeviceGL()
|
|||
_deviceInfo = new (std::nothrow) DeviceInfoGL();
|
||||
if(!_deviceInfo || _deviceInfo->init() == false)
|
||||
{
|
||||
CC_SAFE_RELEASE_NULL(_deviceInfo);
|
||||
delete _deviceInfo;
|
||||
_deviceInfo = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
DeviceGL::~DeviceGL()
|
||||
{
|
||||
ProgramCache::destroyInstance();
|
||||
CC_SAFE_RELEASE_NULL(_deviceInfo);
|
||||
delete _deviceInfo;
|
||||
_deviceInfo = nullptr;
|
||||
}
|
||||
|
||||
CommandBuffer* DeviceGL::newCommandBuffer()
|
||||
|
|
Loading…
Reference in New Issue