- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page