Stefan Dösinger : wined3d: Do not cap fragment samplers to 8.
Alexandre Julliard
julliard at winehq.org
Wed Nov 21 07:47:41 CST 2007
Module: wine
Branch: master
Commit: bf03075b5e9c1d4a915f0f581783344d08e07e60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf03075b5e9c1d4a915f0f581783344d08e07e60
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Nov 17 00:44:36 2007 +0100
wined3d: Do not cap fragment samplers to 8.
---
dlls/wined3d/directx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 696ce10..36d7ebc 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -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);
}
More information about the wine-cvs
mailing list