D3DShot icon indicating copy to clipboard operation
D3DShot copied to clipboard

d3dshot.create() cant work

Open Soikie opened this issue 2 years ago • 1 comments

when i run 'd3dshot.create()',it raise COMError (-2005270524, 'The specified device interface or function level is not supported on this system。', (None, None, None, 0, None))

i find the wrong code in dxgi.py

def initialize_dxgi_output_duplication(dxgi_output, d3d_device):
    dxgi_output_duplication = ctypes.POINTER(IDXGIOutputDuplication)()
    dxgi_output.DuplicateOutput(d3d_device,ctypes.byref(dxgi_output_duplication) )

    return dxgi_output_duplication     

the dxgi_output.DuplicateOutput(d3d_device,ctypes.byref(dxgi_output_duplication) ) raise the error

Soikie avatar Jun 07 '22 17:06 Soikie

That may happen when you try to create more than one d3d object, please check Singletone section of README.

hoonseo0409 avatar Aug 10 '22 17:08 hoonseo0409