D3D scissoring, skip texture stages and some warning fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2616 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-03-08 18:45:39 +00:00
parent feb670044e
commit c7a45ecf95
3 changed files with 14 additions and 9 deletions

View File

@ -44,7 +44,6 @@ void SetVSConstant4fv(int const_number, const float *f)
D3D::dev->SetVertexShaderConstantF(const_number, f, 1);
}
void VertexShaderCache::Init()
{
@ -88,7 +87,7 @@ void VertexShaderCache::SetShader(u32 components)
bool HLSL = false;
const char *code = GenerateVertexShader(components, false);
LPDIRECT3DVERTEXSHADER9 shader = HLSL ? D3D::CompileVertexShader(code, strlen(code), false) : CompileCgShader(code);
LPDIRECT3DVERTEXSHADER9 shader = HLSL ? D3D::CompileVertexShader(code, (int)strlen(code), false) : CompileCgShader(code);
if (shader)
{
// Make an entry in the table