Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f9c4d442
Commit
f9c4d442
authored
Oct 24, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the general shader constant limit.
parent
70d6304a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
directx.c
dlls/wined3d/directx.c
+0
-33
No files found.
dlls/wined3d/directx.c
View file @
f9c4d442
...
@@ -408,34 +408,6 @@ static void select_shader_mode(const struct wined3d_gl_info *gl_info, int *ps_se
...
@@ -408,34 +408,6 @@ static void select_shader_mode(const struct wined3d_gl_info *gl_info, int *ps_se
}
}
}
}
/** Select the number of report maximum shader constants based on the selected shader modes */
static
void
select_shader_max_constants
(
int
ps_selected_mode
,
int
vs_selected_mode
,
struct
wined3d_gl_info
*
gl_info
)
{
switch
(
vs_selected_mode
)
{
case
SHADER_GLSL
:
gl_info
->
max_vshader_constantsF
=
gl_info
->
max_vs_glsl_constantsF
;
break
;
case
SHADER_ARB
:
gl_info
->
max_vshader_constantsF
=
gl_info
->
max_vs_arb_constantsF
;
break
;
default:
gl_info
->
max_vshader_constantsF
=
0
;
break
;
}
switch
(
ps_selected_mode
)
{
case
SHADER_GLSL
:
gl_info
->
max_pshader_constantsF
=
gl_info
->
max_ps_glsl_constantsF
;
break
;
case
SHADER_ARB
:
gl_info
->
max_pshader_constantsF
=
gl_info
->
max_ps_arb_constantsF
;
break
;
default:
gl_info
->
max_pshader_constantsF
=
0
;
break
;
}
}
/**********************************************************
/**********************************************************
* IWineD3D parts follows
* IWineD3D parts follows
**********************************************************/
**********************************************************/
...
@@ -3780,10 +3752,6 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
...
@@ -3780,10 +3752,6 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
select_shader_mode
(
&
adapter
->
gl_info
,
&
ps_selected_mode
,
&
vs_selected_mode
);
select_shader_mode
(
&
adapter
->
gl_info
,
&
ps_selected_mode
,
&
vs_selected_mode
);
/* This function should *not* be modifying GL caps
* TODO: move the functionality where it belongs */
select_shader_max_constants
(
ps_selected_mode
,
vs_selected_mode
,
&
adapter
->
gl_info
);
/* ------------------------------------------------
/* ------------------------------------------------
The following fields apply to both d3d8 and d3d9
The following fields apply to both d3d8 and d3d9
------------------------------------------------ */
------------------------------------------------ */
...
@@ -4882,7 +4850,6 @@ BOOL InitAdapters(IWineD3DImpl *This)
...
@@ -4882,7 +4850,6 @@ BOOL InitAdapters(IWineD3DImpl *This)
WineD3D_ReleaseFakeGLContext
(
&
fake_gl_ctx
);
WineD3D_ReleaseFakeGLContext
(
&
fake_gl_ctx
);
select_shader_mode
(
&
adapter
->
gl_info
,
&
ps_selected_mode
,
&
vs_selected_mode
);
select_shader_mode
(
&
adapter
->
gl_info
,
&
ps_selected_mode
,
&
vs_selected_mode
);
select_shader_max_constants
(
ps_selected_mode
,
vs_selected_mode
,
&
adapter
->
gl_info
);
fillGLAttribFuncs
(
&
adapter
->
gl_info
);
fillGLAttribFuncs
(
&
adapter
->
gl_info
);
adapter
->
opengl
=
TRUE
;
adapter
->
opengl
=
TRUE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment