summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-21 18:01:10 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-21 18:01:10 +0000
commit41e5a5404dd18c748a8355c0796d5e53f793c3b9 (patch)
tree58af8fabc3132d1edce8248ae5f5eaf53bbd6f42 /Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp
parentFixed release history (diff)
downloadDiligentEngine-41e5a5404dd18c748a8355c0796d5e53f793c3b9.tar.gz
DiligentEngine-41e5a5404dd18c748a8355c0796d5e53f793c3b9.zip
Implemented explicit resource state transitions
Diffstat (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp')
-rw-r--r--Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp4
1 files changed, 2 insertions, 2 deletions
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<IBuffer> pBufferFromNativeGLHandle;
- pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, &pBufferFromNativeGLHandle);
+ pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, RESOURCE_STATE_UNKNOWN, &pBufferFromNativeGLHandle);
++m_NumBuffersCreated;
const auto &TestBufferDesc = pBufferFromNativeGLHandle->GetDesc();