Fixes Wario World for using an Invalid Texture coordinate, Tell me if it breaks anything

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@852 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1
2008-10-13 21:59:51 +00:00
parent e13ca7e384
commit 41b72ffc8b
2 changed files with 13 additions and 12 deletions

View File

@ -163,11 +163,7 @@ bool VertexShaderMngr::CompileVertexShader(VERTEXSHADER& vs, const char* pstrpro
{
char stropt[64];
sprintf(stropt, "MaxLocalParams=256,MaxInstructions=%d", s_nMaxVertexInstructions);
#ifdef _WIN32
const char* opts[] = {"-profileopts",stropt,"-O2", "-q", NULL};
#else
const char* opts[] = {"-profileopts",stropt,"-q", NULL};
#endif
CGprogram tempprog = cgCreateProgram(g_cgcontext, CG_SOURCE, pstrprogram, g_cgvProf, "main", opts);
if (!cgIsProgram(tempprog) || cgGetError() != CG_NO_ERROR) {
ERROR_LOG("Failed to load vs %s:\n", cgGetLastListing(g_cgcontext));