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
ef6e9a6b
Commit
ef6e9a6b
authored
Nov 11, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d/atifs: Move fragment program compilation from set_tex_op_atifs() to…
wined3d/atifs: Move fragment program compilation from set_tex_op_atifs() to atifs_apply_draw_state().
parent
3d6c33f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ati_fragment_shader.c
dlls/wined3d/ati_fragment_shader.c
+9
-0
No files found.
dlls/wined3d/ati_fragment_shader.c
View file @
ef6e9a6b
...
...
@@ -1012,6 +1012,11 @@ static void atifs_stage_constant(struct wined3d_context *context, const struct w
static
void
set_tex_op_atifs
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
context
->
shader_update_mask
|=
(
1u
<<
WINED3D_SHADER_TYPE_PIXEL
);
}
static
void
atifs_update_shader
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
)
{
struct
atifs_context_private_data
*
ctx_priv
=
context
->
fragment_pipe_data
;
const
struct
atifs_ffp_desc
*
desc
,
*
last_shader
=
ctx_priv
->
last_shader
;
struct
wined3d_context_gl
*
context_gl
=
wined3d_context_gl
(
context
);
...
...
@@ -1233,6 +1238,10 @@ static void atifs_apply_draw_state(struct wined3d_context *context, const struct
gl_info
->
gl_ops
.
gl
.
p_glEnable
(
GL_FRAGMENT_SHADER_ATI
);
checkGLcall
(
"glEnable(GL_FRAGMENT_SHADER_ATI)"
);
if
(
context
->
shader_update_mask
&
(
1u
<<
WINED3D_SHADER_TYPE_PIXEL
))
atifs_update_shader
(
context
,
state
);
/* Note that atifs_update_shader() may set the constant update mask. */
constant_update_mask
=
context
->
constant_update_mask
;
if
(
constant_update_mask
&
WINED3D_SHADER_CONST_FFP_PS
)
...
...
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