Stefan Dösinger : wined3d: Add a max varyings member to the gl info structure.
Alexandre Julliard
julliard at winehq.org
Tue Nov 6 08:24:40 CST 2007
Module: wine
Branch: master
Commit: 654571f2fc51f97cc84cb86d5738e216c810f7ed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=654571f2fc51f97cc84cb86d5738e216c810f7ed
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Oct 24 13:16:57 2007 +0200
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(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 55b40e9..a77ea96 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 5354fef..8694f37 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;
More information about the wine-cvs
mailing list