Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
489 Discussions

WGL_NV_DX_interop2 not able to share textures on Intel Graphics 620

Escudero__Andre
Beginner
865 Views

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);

 

 

0 Kudos
0 Replies
Reply