(XDK) Build fixes

This commit is contained in:
twinaphex 2014-09-12 00:16:05 +02:00
parent a2d0a0d5d2
commit 9caadf5a55
3 changed files with 7 additions and 6 deletions

View File

@ -36,13 +36,13 @@ HRESULT d3d_create_vertex_buffer(LPDIRECT3DDEVICE dev,
D3DPOOL pool, LPDIRECT3DVERTEXBUFFER vert_buf, void *handle)
{
#if defined(_XBOX1)
IDirect3DDevice8_CreateVertexBuffer(dev, length, usage, fvf, pool,
return IDirect3DDevice8_CreateVertexBuffer(dev, length, usage, fvf, pool,
&vert_buf);
#elif defined(_XBOX360)
IDirect3DDevice9_CreateVertexBuffer(dev, length, usage, fvf, pool,
return IDirect3DDevice9_CreateVertexBuffer(dev, length, usage, fvf, pool,
&vert_buf, NULL);
#else
dev->CreateVertexBuffer(length, usage, fvf, pool, &vert_buf, NULL);
return dev->CreateVertexBuffer(length, usage, fvf, pool, &vert_buf, NULL);
#endif
}

View File

@ -282,6 +282,8 @@ static void renderchain_blit_to_texture(void *data, const void *frame,
D3DLOCKED_RECT d3dlr;
d3d_video_t *d3d = (d3d_video_t*)data;
(void)desc;
if (d3d->last_width != width || d3d->last_height != height)
{
D3DTexture_LockRectClear(d3d, d3d->tex, 0, d3dlr, NULL, D3DLOCK_NOSYSLOCK);

View File

@ -588,10 +588,9 @@ SCREENSHOTS
============================================================ */
#if defined(_XBOX1)
#include "../xdk/screenshot_xdk1.c"
#endif
#else
#include "../screenshot.c"
#endif
/*============================================================
PLAYLISTS