mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (Diligent/Drawing): set g_TriangleFanIndexBuffer to null after release
This commit is contained in:
@@ -559,8 +559,10 @@ namespace MG_GL::GL {
|
||||
|
||||
if (!MG_Diligent::g_TriangleFanIndexBuffer || MG_Diligent::g_TriangleFanIndexBuffer->GetDesc().Size < newIndexData.size())
|
||||
{
|
||||
if (MG_Diligent::g_TriangleFanIndexBuffer)
|
||||
if (MG_Diligent::g_TriangleFanIndexBuffer) {
|
||||
MG_Diligent::g_TriangleFanIndexBuffer->Release();
|
||||
MG_Diligent::g_TriangleFanIndexBuffer = nullptr;
|
||||
}
|
||||
|
||||
Diligent::BufferDesc BuffDesc;
|
||||
BuffDesc.Name = "Triangle Fan Temp Index Buffer";
|
||||
|
||||
Reference in New Issue
Block a user