wireframe etc

This commit is contained in:
Aaron Robinson 2004-01-29 04:25:16 +00:00
parent 750436ad67
commit 8351cae031
3 changed files with 8 additions and 5 deletions

BIN
Cxbx.opt

Binary file not shown.

View File

@ -55,10 +55,10 @@ typedef signed short sint16;
typedef signed long sint32;
// define this to trace intercepted function calls
#define _DEBUG_TRACE
//#define _DEBUG_TRACE
// define this to trace warnings
#define _DEBUG_WARNINGS
//#define _DEBUG_WARNINGS
// define this to enable wireframe mode
#define _DEBUG_WIREFRAME

View File

@ -1842,17 +1842,20 @@ HRESULT WINAPI XTL::EmuIDirect3DDevice8_CreateVertexShader
// TODO: Intelligently fill out these fields as necessary
ZeroMemory(pD3DVertexShader, sizeof(X_D3DVertexShader));
HRESULT hRet = D3D_OK;
/*
HRESULT hRet = g_pD3DDevice8->CreateVertexShader
(
pDeclaration,
pFunction,
&pD3DVertexShader->Handle,
g_dwVertexShaderUsage // TODO: HACK: Xbox has extensions!
);
);*/
*pHandle = (DWORD)pD3DVertexShader;
if(FAILED(hRet))
// if(FAILED(hRet))
{
pD3DVertexShader->Handle = 0;
@ -5693,7 +5696,7 @@ VOID WINAPI XTL::EmuIDirect3DDevice8_SetVertexShader
// create emulated shader struct
X_D3DVertexShader *pD3DVertexShader = (X_D3DVertexShader*)Handle;
hRet = g_pD3DDevice8->SetVertexShader(0);
hRet = g_pD3DDevice8->SetVertexShader(D3DFVF_XYZ|D3DFVF_TEX0);
}
else
{