From 41e5a5404dd18c748a8355c0796d5e53f793c3b9 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 21 Nov 2018 10:01:10 -0800 Subject: Implemented explicit resource state transitions --- Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp') diff --git a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp index b9aa951..b9df712 100644 --- a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp +++ b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp @@ -106,7 +106,7 @@ void TestCreateObjFromNativeResGL::CreateTexture(Diligent::ITexture *pTexture) TmpTexDesc.Height = 0; TmpTexDesc.MipLevels = 0; TmpTexDesc.Format = TEX_FORMAT_UNKNOWN; - pDeviceGL->CreateTextureFromGLHandle(GLHandle, TmpTexDesc, &pAttachedTexture); + pDeviceGL->CreateTextureFromGLHandle(GLHandle, TmpTexDesc, RESOURCE_STATE_UNKNOWN, &pAttachedTexture); ++m_NumTexturesCreated; auto TestTexDesc = pAttachedTexture->GetDesc(); @@ -130,7 +130,7 @@ void TestCreateObjFromNativeResGL::CreateBuffer(Diligent::IBuffer *pBuffer) auto GLBufferHandle = pBufferGL->GetGLBufferHandle(); RefCntAutoPtr pBufferFromNativeGLHandle; - pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, &pBufferFromNativeGLHandle); + pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, RESOURCE_STATE_UNKNOWN, &pBufferFromNativeGLHandle); ++m_NumBuffersCreated; const auto &TestBufferDesc = pBufferFromNativeGLHandle->GetDesc(); -- cgit v1.2.3