diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 05:58:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 05:58:06 +0000 |
| commit | 5a72492a19f321df617761992f8823091990d44b (patch) | |
| tree | f88c0fb7761ad7a6f7a34eb82e3448cc01131a76 /Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp | |
| parent | Updated core (fixed bug in GetResourceDimString) (diff) | |
| download | DiligentEngine-5a72492a19f321df617761992f8823091990d44b.tar.gz DiligentEngine-5a72492a19f321df617761992f8823091990d44b.zip | |
Added typeless formats to texture creation test; updated core
Diffstat (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp index 59535c7..b9aa951 100644 --- a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp +++ b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp @@ -109,7 +109,10 @@ void TestCreateObjFromNativeResGL::CreateTexture(Diligent::ITexture *pTexture) pDeviceGL->CreateTextureFromGLHandle(GLHandle, TmpTexDesc, &pAttachedTexture); ++m_NumTexturesCreated; - const auto &TestTexDesc = pAttachedTexture->GetDesc(); + auto TestTexDesc = pAttachedTexture->GetDesc(); + if (m_pDevice->GetTextureFormatInfo(SrcTexDesc.Format).IsTypeless) + TestTexDesc.Format = SrcTexDesc.Format; + VERIFY_EXPR(TestTexDesc == SrcTexDesc); RefCntAutoPtr<ITextureGL> pAttachedTextureGL(pAttachedTexture, IID_TextureGL); VERIFY_EXPR(pAttachedTextureGL->GetGLTextureHandle() == GLHandle); |
