mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
(d3d_wrapper.cpp) Buildfixes
This commit is contained in:
parent
d2657fb18a
commit
bbeebcc29a
@ -17,6 +17,7 @@
|
||||
#ifndef __D3DVIDEO_INTF_H__
|
||||
#define __D3DVIDEO_INTF_H__
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
@ -14,6 +14,8 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <retro_log.h>
|
||||
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user