Commit d58b0b1d authored by Martin Finkel's avatar Martin Finkel
Browse files

remove commented out code

parent 8bb1d781
......@@ -76,7 +76,6 @@ private:
ID3D11Device* m_Device;
render_context Context;
bool initialized;
// const std::mutex text_lock;
};
// d3d11 callbacks
......@@ -226,7 +225,6 @@ void Update(render_context* ctx, UINT width, UINT height)
abort();
}
// ctx->texture->QueryInterface(&IID_ID3D11Resource1, (LPVOID*) &sharedResource);
hr = sharedResource->CreateSharedHandle(NULL, DXGI_SHARED_RESOURCE_READ | DXGI_SHARED_RESOURCE_WRITE, NULL, &ctx->sharedHandled);
if(FAILED(hr))
{
......@@ -256,10 +254,6 @@ void Update(render_context* ctx, UINT width, UINT height)
d3d11VLC1->Release();
// ID3D11Device1_OpenSharedResource1(m_Device, sys->sharedHandle, &IID_ID3D11Resource, (void**)&copyTexture);
// et tu fais ta ID3D11ShaderResourceView a partir de copyTexture
D3D11_SHADER_RESOURCE_VIEW_DESC resviewDesc;
ZeroMemory(&resviewDesc, sizeof(D3D11_SHADER_RESOURCE_VIEW_DESC));
resviewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment