mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
(d3d_wrapper.cpp) Buildfixes
This commit is contained in:
parent
d2657fb18a
commit
bbeebcc29a
@ -17,6 +17,7 @@
|
|||||||
#ifndef __D3DVIDEO_INTF_H__
|
#ifndef __D3DVIDEO_INTF_H__
|
||||||
#define __D3DVIDEO_INTF_H__
|
#define __D3DVIDEO_INTF_H__
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <retro_log.h>
|
||||||
|
|
||||||
#include "d3d_wrapper.h"
|
#include "d3d_wrapper.h"
|
||||||
|
|
||||||
static LPDIRECT3DDEVICE d3d_wrapper_dev;
|
static LPDIRECT3DDEVICE d3d_wrapper_dev;
|
||||||
@ -301,8 +303,6 @@ void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex,
|
|||||||
unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect,
|
unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect,
|
||||||
unsigned rectangle_height, unsigned flags)
|
unsigned rectangle_height, unsigned flags)
|
||||||
{
|
{
|
||||||
if (!d3d_restore_device(dev))
|
|
||||||
return;
|
|
||||||
#if defined(_XBOX)
|
#if defined(_XBOX)
|
||||||
D3DTexture_LockRect(tex, level, lock_rect, rect, flags);
|
D3DTexture_LockRect(tex, level, lock_rect, rect, flags);
|
||||||
memset(lock_rect->pBits, 0, rectangle_height * lock_rect->Pitch);
|
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,
|
LPDIRECT3DTEXTURE tex, D3DLOCKED_RECT *lr, const void *frame,
|
||||||
unsigned width, unsigned height, unsigned pitch)
|
unsigned width, unsigned height, unsigned pitch)
|
||||||
{
|
{
|
||||||
if (!d3d_restore_device(dev))
|
|
||||||
return;
|
|
||||||
#ifdef _XBOX
|
#ifdef _XBOX
|
||||||
D3DTexture_LockRect(tex, 0, lr, NULL, D3DLOCK_NOSYSLOCK);
|
D3DTexture_LockRect(tex, 0, lr, NULL, D3DLOCK_NOSYSLOCK);
|
||||||
#if defined(_XBOX360)
|
#if defined(_XBOX360)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user