Fixed broken check.

This commit is contained in:
Armin Novak
2016-03-01 16:56:36 +01:00
parent 8997c6c03a
commit 09e957f717

View File

@@ -136,12 +136,11 @@ int shadow_encoder_init_rfx(rdpShadowEncoder* encoder)
if (!encoder->rfx)
encoder->rfx = rfx_context_new(TRUE);
if (!rfx_context_reset(encoder->rfx, encoder->width, encoder->height))
goto fail;
if (!encoder->rfx)
goto fail;
if (!rfx_context_reset(encoder->rfx, encoder->width, encoder->height))
goto fail;
encoder->rfx->mode = RLGR3;
encoder->rfx->width = encoder->width;