H. Verbeet : wined3d: Add a comment to clarify the point of max_sampler_stages.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 27 03:46:07 CDT 2006


Module: wine
Branch: master
Commit: 1d839e42e9d8a4bb5dd784f30c9dc0dd53a41418
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=1d839e42e9d8a4bb5dd784f30c9dc0dd53a41418

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Tue Sep 26 20:31:52 2006 +0200

wined3d: Add a comment to clarify the point of max_sampler_stages.

---

 dlls/wined3d/directx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 68914d6..af27994 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -766,6 +766,9 @@ #undef USE_GL_FUNC
     }
     checkGLcall("extension detection\n");
 
+    /* In some cases the number of texture stages can be larger than the number
+     * of samplers. The GF4 for example can use only 2 samplers (no fragment
+     * shaders), but 8 texture stages (register combiners). */
     gl_info->max_sampler_stages = max(gl_info->max_samplers, gl_info->max_texture_stages);
 
     /* We can only use NP2_NATIVE when the hardware supports it. */




More information about the wine-cvs mailing list