quartz/vmr9: Remove a redundant check from VMR9_SurfaceAllocator_InitializeDevice().
This check is already made in allocate_surfaces(). Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
45789e00da
commit
6502ac993d
|
@ -2615,12 +2615,6 @@ static HRESULT WINAPI VMR9_SurfaceAllocator_InitializeDevice(IVMRSurfaceAllocato
|
||||||
{
|
{
|
||||||
struct default_presenter *This = impl_from_IVMRSurfaceAllocatorEx9(iface);
|
struct default_presenter *This = impl_from_IVMRSurfaceAllocatorEx9(iface);
|
||||||
|
|
||||||
if (This->pVMR9->mode != VMR9Mode_Windowed && !This->pVMR9->hWndClippingWindow)
|
|
||||||
{
|
|
||||||
ERR("No window set\n");
|
|
||||||
return VFW_E_WRONG_STATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
This->info = *allocinfo;
|
This->info = *allocinfo;
|
||||||
|
|
||||||
if (!CreateRenderingWindow(This, allocinfo, numbuffers))
|
if (!CreateRenderingWindow(This, allocinfo, numbuffers))
|
||||||
|
|
Loading…
Reference in New Issue