diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-03 20:51:31 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-03 20:51:31 +0000 |
| commit | bba5d7d88f8ee2c1896c0e20cbf281c5dd85e64c (patch) | |
| tree | 8a19d3575d87f06f654519221d4d0cec548dae5b | |
| parent | Enabled iOS build (diff) | |
| parent | Updated HLSL2GLSL converter app initialization (diff) | |
| download | DiligentTools-bba5d7d88f8ee2c1896c0e20cbf281c5dd85e64c.tar.gz DiligentTools-bba5d7d88f8ee2c1896c0e20cbf281c5dd85e64c.zip | |
Merge remote-tracking branch 'origin/master'
| -rw-r--r-- | HLSL2GLSLConverter/src/HLSL2GLSLConverterApp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/HLSL2GLSLConverter/src/HLSL2GLSLConverterApp.cpp b/HLSL2GLSLConverter/src/HLSL2GLSLConverterApp.cpp index 1102c56..fd083fe 100644 --- a/HLSL2GLSLConverter/src/HLSL2GLSLConverterApp.cpp +++ b/HLSL2GLSLConverter/src/HLSL2GLSLConverterApp.cpp @@ -215,11 +215,12 @@ int main(int argc, char** argv) RefCntAutoPtr<IRenderDevice> pDevice; RefCntAutoPtr<IDeviceContext> pContext; RefCntAutoPtr<ISwapChain> pSwapChain; - EngineCreationAttribs EngineCreationAttribs; + EngineGLAttribs CreationAttribs; SwapChainDesc SCDesc; SCDesc.SamplesCount = 1; + CreationAttribs.pNativeWndHandle = wnd; pFactory->CreateDeviceAndSwapChainGL( - EngineCreationAttribs, &pDevice, &pContext, SCDesc, wnd, &pSwapChain ); + CreationAttribs, &pDevice, &pContext, SCDesc, &pSwapChain ); if (!pDevice) { LOG_ERROR_MESSAGE("Failed to create render device"); |
