From 654571f2fc51f97cc84cb86d5738e216c810f7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com> Date: Wed, 24 Oct 2007 13:16:57 +0200 Subject: [PATCH] wined3d: Add a max varyings member to the gl info structure. --- dlls/wined3d/directx.c | 3 +++ include/wine/wined3d_gl.h | 1 + 2 files changed, 4 insertions(+) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 55b40e9f8da..a77ea96ca7c 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -757,6 +757,9 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) { glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB, &gl_max); gl_info->ps_glsl_constantsF = gl_max / 4; TRACE_(d3d_caps)("Max ARB_FRAGMENT_SHADER float constants: %u\n", gl_info->ps_glsl_constantsF); + glGetIntegerv(GL_MAX_VARYING_FLOATS_ARB, &gl_max); + gl_info->max_glsl_varyings = gl_max; + TRACE_(d3d_caps)("Max GLSL varyings: %u (%u 4 component varyings)\n", gl_max, gl_max / 4); } if (gl_info->supported[EXT_VERTEX_SHADER]) { gl_info->vs_ati_version = VS_VERSION_11; diff --git a/include/wine/wined3d_gl.h b/include/wine/wined3d_gl.h index 5354fef4267..8694f374c9b 100644 --- a/include/wine/wined3d_gl.h +++ b/include/wine/wined3d_gl.h @@ -3723,6 +3723,7 @@ typedef struct _WineD3D_GL_Info { UINT max_blends; UINT max_anisotropy; UINT max_aux_buffers; + UINT max_glsl_varyings; unsigned max_vshader_constantsF; unsigned max_pshader_constantsF; -- 2.24.1