wined3d: Add a max varyings member to the gl info structure.

This commit is contained in:
Stefan Dösinger 2007-10-24 13:16:57 +02:00 committed by Alexandre Julliard
parent 0615c8e454
commit 654571f2fc
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;