[PATCH] wined3d: Prevent erroneous FIXMEs on newer cards Cards that have 12 or more combined samplers can trigger a fixme if they have the same amount of vertex samplers, even though it's plenty enough

Chris Robinson chris.kcat at gmail.com
Sun May 10 16:17:43 CDT 2009


---
 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 b1bd332..1cd1545 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -901,7 +901,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
                  * So this is just a check to check that our assumption holds true. If not, write a warning
                  * and reduce the number of vertex samplers or probably disable vertex texture fetch.
                  */
-                if(gl_info->max_vertex_samplers &&
+                if(gl_info->max_vertex_samplers && gl_info->max_combined_samplers < 12 &&
                    MAX_TEXTURES + gl_info->max_vertex_samplers > gl_info->max_combined_samplers) {
                     FIXME("OpenGL implementation supports %u vertex samplers and %u total samplers\n",
                           gl_info->max_vertex_samplers, gl_info->max_combined_samplers);
-- 
1.6.0.6


--Boundary-00=_jxTGKFZK91jQERg--



More information about the wine-patches mailing list