wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

CreateTexture 创建share_handle句柄为空,导致无法渲染 #1388

Open Travis3582 opened 3 years ago

Travis3582 commented 3 years ago

DX_ENSURE_OK(d3ddev->CreateTexture(w, h, 1, D3DUSAGE_RENDERTARGET, has_alpha ? D3DFMT_A8R8G8B8 : D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &dx_texture, &share_handle) , false); log: CreateTexture: w = 1920,h = 1080,has_alpha = 1,share_handle = 0x0,dx_texture = 0x249b884b780 我调用这方法,CreateTexture创建是成功的,但是share_handle 返回为空,,是什么原因导致?