Slightly change my last commit with sorens idea of using CG_VERSION_NUM instead.
For everyone having black screens on Windows: Try switching off MSAA, it seems to be broken (at least for me) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5832 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2e6a9f9805
commit
8e4ef9b9e5
|
@ -96,7 +96,7 @@ void PixelShaderCache::Init()
|
||||||
s_displayCompileAlert = true;
|
s_displayCompileAlert = true;
|
||||||
|
|
||||||
glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, (GLint *)&s_nMaxPixelInstructions);
|
glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, (GLint *)&s_nMaxPixelInstructions);
|
||||||
#ifdef __linux__
|
#if CG_VERSION_NUM == 2100
|
||||||
if (strstr((const char*)glGetString(GL_VENDOR), "ATI") != NULL)
|
if (strstr((const char*)glGetString(GL_VENDOR), "ATI") != NULL)
|
||||||
{
|
{
|
||||||
s_nMaxPixelInstructions = 4096;
|
s_nMaxPixelInstructions = 4096;
|
||||||
|
|
|
@ -403,7 +403,7 @@ bool Renderer::Init()
|
||||||
|
|
||||||
g_cgvProf = cgGLGetLatestProfile(CG_GL_VERTEX);
|
g_cgvProf = cgGLGetLatestProfile(CG_GL_VERTEX);
|
||||||
g_cgfProf = cgGLGetLatestProfile(CG_GL_FRAGMENT);
|
g_cgfProf = cgGLGetLatestProfile(CG_GL_FRAGMENT);
|
||||||
#ifdef __linux__
|
#if CG_VERSION_NUM == 2100
|
||||||
// A bug was introduced in Cg2.1's handling of very large profile option values
|
// A bug was introduced in Cg2.1's handling of very large profile option values
|
||||||
// so this will not work on ATI. ATI returns MAXINT = 2147483647 (0x7fffffff)
|
// so this will not work on ATI. ATI returns MAXINT = 2147483647 (0x7fffffff)
|
||||||
// which is correct in OpenGL but Cg fails to handle it properly. As a result
|
// which is correct in OpenGL but Cg fails to handle it properly. As a result
|
||||||
|
|
|
@ -112,7 +112,7 @@ void VertexShaderCache::Init()
|
||||||
s_displayCompileAlert = true;
|
s_displayCompileAlert = true;
|
||||||
|
|
||||||
glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, (GLint *)&s_nMaxVertexInstructions);
|
glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, (GLint *)&s_nMaxVertexInstructions);
|
||||||
#ifdef __linux__
|
#if CG_VERSION_NUM == 2100
|
||||||
if (strstr((const char*)glGetString(GL_VENDOR), "ATI") != NULL)
|
if (strstr((const char*)glGetString(GL_VENDOR), "ATI") != NULL)
|
||||||
{
|
{
|
||||||
s_nMaxVertexInstructions = 4096;
|
s_nMaxVertexInstructions = 4096;
|
||||||
|
|
Loading…
Reference in New Issue