WGL_NV_DX_interop2 not able to share textures on Intel Graphics 620

WGL_NV_DX_interop2 not able to share textures on Intel Graphics 620

On Windows 10 64bit with latest driver (26.20.100.6709) installed , using the WGL_NV_DX_interop2 returns no errors but the shared texture does not seem to work.

A glGetTexImage on the shared texture returns no pixel data. 

This works just fine on NVIDIA cards

Sample

wglDXDevice = wglDXOpenDeviceNV(m_spDX11Device.Get());
glGenTextures(1, &texture);
gl_handle = wglDXRegisterObjectNV(wglDXDevice, d311Texture2D.Get(), texture, GL_TEXTURE_2D, WGL_ACCESS_READ_WRITE_NV);

Then after DX has render the texture

wglDXLockObjectsNV(wglDXDevice, 1, &gl_handle);
glUseProgram(prog);
glBindVertexArray(VAO);
glBindTexture(GL_TEXTURE_2D, texture); // texture contains no data but a glGetTexImage on NVIDIA works just fine
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0); // Black screen on intel, but works on nvidia
wglDXUnlockObjectsNV(wglDXDevice, 1, &gl_handle);

 

 

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.