From bbeebcc29a340f3522b3acde30dee9627a365b26 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Nov 2015 01:06:35 +0100 Subject: [PATCH] (d3d_wrapper.cpp) Buildfixes --- gfx/d3d/d3d.h | 1 + gfx/d3d/d3d_wrapper.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/d3d/d3d.h b/gfx/d3d/d3d.h index d57cb5af0c..8d4189263f 100644 --- a/gfx/d3d/d3d.h +++ b/gfx/d3d/d3d.h @@ -17,6 +17,7 @@ #ifndef __D3DVIDEO_INTF_H__ #define __D3DVIDEO_INTF_H__ +#include #include #ifdef HAVE_CONFIG_H diff --git a/gfx/d3d/d3d_wrapper.cpp b/gfx/d3d/d3d_wrapper.cpp index 8d5790f50e..3fc422af3c 100644 --- a/gfx/d3d/d3d_wrapper.cpp +++ b/gfx/d3d/d3d_wrapper.cpp @@ -14,6 +14,8 @@ * If not, see . */ +#include + #include "d3d_wrapper.h" static LPDIRECT3DDEVICE d3d_wrapper_dev; @@ -301,8 +303,6 @@ void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex, unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect, unsigned rectangle_height, unsigned flags) { - if (!d3d_restore_device(dev)) - return; #if defined(_XBOX) D3DTexture_LockRect(tex, level, lock_rect, rect, flags); memset(lock_rect->pBits, 0, rectangle_height * lock_rect->Pitch); @@ -370,8 +370,6 @@ void d3d_texture_blit(unsigned pixel_size, LPDIRECT3DTEXTURE tex, D3DLOCKED_RECT *lr, const void *frame, unsigned width, unsigned height, unsigned pitch) { - if (!d3d_restore_device(dev)) - return; #ifdef _XBOX D3DTexture_LockRect(tex, 0, lr, NULL, D3DLOCK_NOSYSLOCK); #if defined(_XBOX360)