wined3d: Test the correct program for native limits.

This commit is contained in:
Stefan Dösinger 2012-12-05 09:01:35 +01:00 committed by Alexandre Julliard
parent 33802da4f3
commit e53aa8c9e2
1 changed files with 1 additions and 1 deletions

View File

@ -4315,7 +4315,7 @@ static GLuint shader_arb_generate_vshader(const struct wined3d_shader *shader,
{
GLint native;
GL_EXTCALL(glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB, &native));
GL_EXTCALL(glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB, &native));
checkGLcall("glGetProgramivARB()");
if (!native) WARN("Program exceeds native resource limits.\n");