wined3d: Do not cap fragment samplers to 8.

This commit is contained in:
Stefan Dösinger 2007-11-17 00:44:36 +01:00 committed by Alexandre Julliard
parent c65dbabcf3
commit bf03075b5e
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
if (gl_info->supported[ARB_FRAGMENT_PROGRAM]) {
GLint tmp;
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &tmp);
gl_info->max_fragment_samplers = min(8, tmp);
gl_info->max_fragment_samplers = min(MAX_FRAGMENT_SAMPLERS, tmp);
} else {
gl_info->max_fragment_samplers = max(gl_info->max_fragment_samplers, gl_max);
}