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
5afb593c
Commit
5afb593c
authored
Oct 26, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass parameters to shader_arb_vs_local_constants().
parent
1b2f9d29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+8
-8
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5afb593c
...
...
@@ -590,14 +590,12 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
}
/* GL locking is done by the caller. */
static
void
shader_arb_vs_local_constants
(
const
struct
wined3d_context
*
context
,
IWineD3DDeviceImpl
*
deviceImpl
)
static
void
shader_arb_vs_local_constants
(
const
struct
arb_vs_compiled_shader
*
gl_shader
,
const
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
deviceImpl
->
adapter
->
gl_info
;
const
struct
wined3d_state
*
state
=
&
deviceImpl
->
stateBlock
->
state
;
unsigned
char
i
;
struct
shader_arb_priv
*
priv
=
deviceImpl
->
shader_priv
;
const
struct
arb_vs_compiled_shader
*
gl_shader
=
priv
->
compiled_vprog
;
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
float
position_fixup
[
4
];
unsigned
char
i
;
/* Upload the position fixup */
shader_get_position_fixup
(
context
,
state
,
position_fixup
);
...
...
@@ -633,15 +631,17 @@ static void shader_arb_load_constants(const struct wined3d_context *context, cha
IWineD3DDeviceImpl
*
device
=
context
->
swapchain
->
device
;
IWineD3DStateBlockImpl
*
stateBlock
=
device
->
stateBlock
;
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
struct
shader_arb_priv
*
priv
=
device
->
shader_priv
;
if
(
useVertexShader
)
{
IWineD3DBaseShaderImpl
*
vshader
=
(
IWineD3DBaseShaderImpl
*
)
stateBlock
->
state
.
vertex_shader
;
const
struct
arb_vs_compiled_shader
*
gl_shader
=
priv
->
compiled_vprog
;
/* Load DirectX 9 float constants for vertex shader */
device
->
highest_dirty_vs_const
=
shader_arb_load_constantsF
(
vshader
,
gl_info
,
GL_VERTEX_PROGRAM_ARB
,
device
->
highest_dirty_vs_const
,
stateBlock
->
state
.
vs_consts_f
,
context
->
vshader_const_dirty
);
shader_arb_vs_local_constants
(
context
,
devic
e
);
shader_arb_vs_local_constants
(
gl_shader
,
context
,
&
stateBlock
->
stat
e
);
}
if
(
usePixelShader
)
...
...
@@ -4601,7 +4601,7 @@ static void shader_arb_select(const struct wined3d_context *context, BOOL usePS,
glEnable
(
GL_VERTEX_PROGRAM_ARB
);
checkGLcall
(
"glEnable(GL_VERTEX_PROGRAM_ARB);"
);
TRACE
(
"(%p) : Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB
\n
"
,
This
,
priv
->
current_vprogram_id
);
shader_arb_vs_local_constants
(
co
ntext
,
This
);
shader_arb_vs_local_constants
(
co
mpiled
,
context
,
state
);
if
(
priv
->
last_vs_color_unclamp
!=
compiled
->
need_color_unclamp
)
{
priv
->
last_vs_color_unclamp
=
compiled
->
need_color_unclamp
;
...
...
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