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
95197f62
Commit
95197f62
authored
Jan 05, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the unused "current_fprogram_id" field from struct shader_arb_priv.
This has been unused since
1bd56b6c
.
parent
0c4bb266
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-8
No files found.
dlls/wined3d/arb_program_shader.c
View file @
95197f62
...
@@ -270,7 +270,6 @@ struct arb_vshader_private {
...
@@ -270,7 +270,6 @@ struct arb_vshader_private {
struct
shader_arb_priv
struct
shader_arb_priv
{
{
GLuint
current_vprogram_id
;
GLuint
current_vprogram_id
;
GLuint
current_fprogram_id
;
const
struct
arb_ps_compiled_shader
*
compiled_fprog
;
const
struct
arb_ps_compiled_shader
*
compiled_fprog
;
const
struct
arb_vs_compiled_shader
*
compiled_vprog
;
const
struct
arb_vs_compiled_shader
*
compiled_vprog
;
BOOL
use_arbfp_fixed_func
;
BOOL
use_arbfp_fixed_func
;
...
@@ -4581,12 +4580,11 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
...
@@ -4581,12 +4580,11 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
TRACE
(
"Using pixel shader %p.
\n
"
,
ps
);
TRACE
(
"Using pixel shader %p.
\n
"
,
ps
);
find_arb_ps_compile_args
(
state
,
context_gl
,
ps
,
&
compile_args
);
find_arb_ps_compile_args
(
state
,
context_gl
,
ps
,
&
compile_args
);
compiled
=
find_arb_pshader
(
context_gl
,
ps
,
&
compile_args
);
compiled
=
find_arb_pshader
(
context_gl
,
ps
,
&
compile_args
);
priv
->
current_fprogram_id
=
compiled
->
prgId
;
priv
->
compiled_fprog
=
compiled
;
priv
->
compiled_fprog
=
compiled
;
/* Bind the fragment program */
/* Bind the fragment program */
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
priv
->
current_fprogram_i
d
));
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
compiled
->
prgI
d
));
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB,
priv->current_fprogram_i
d);"
);
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB,
compiled->prgI
d);"
);
if
(
!
priv
->
use_arbfp_fixed_func
)
if
(
!
priv
->
use_arbfp_fixed_func
)
priv
->
fragment_pipe
->
fp_enable
(
context
,
FALSE
);
priv
->
fragment_pipe
->
fp_enable
(
context
,
FALSE
);
...
@@ -4595,7 +4593,7 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
...
@@ -4595,7 +4593,7 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
gl_info
->
gl_ops
.
gl
.
p_glEnable
(
GL_FRAGMENT_PROGRAM_ARB
);
gl_info
->
gl_ops
.
gl
.
p_glEnable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glEnable(GL_FRAGMENT_PROGRAM_ARB);"
);
checkGLcall
(
"glEnable(GL_FRAGMENT_PROGRAM_ARB);"
);
TRACE
(
"Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB
\n
"
,
priv
->
current_fprogram_i
d
);
TRACE
(
"Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB
.
\n
"
,
compiled
->
prgI
d
);
/* Pixel Shader 1.x constants are clamped to [-1;1], Pixel Shader 2.0 constants are not. If switching between
/* Pixel Shader 1.x constants are clamped to [-1;1], Pixel Shader 2.0 constants are not. If switching between
* a 1.x and newer shader, reload the first 8 constants
* a 1.x and newer shader, reload the first 8 constants
...
@@ -4634,7 +4632,6 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
...
@@ -4634,7 +4632,6 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
* function replacement shader. */
* function replacement shader. */
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
priv
->
current_fprogram_id
=
0
;
}
}
priv
->
fragment_pipe
->
fp_enable
(
context
,
TRUE
);
priv
->
fragment_pipe
->
fp_enable
(
context
,
TRUE
);
}
}
...
@@ -4718,7 +4715,6 @@ static void shader_arb_disable(void *shader_priv, struct wined3d_context *contex
...
@@ -4718,7 +4715,6 @@ static void shader_arb_disable(void *shader_priv, struct wined3d_context *contex
{
{
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
priv
->
current_fprogram_id
=
0
;
}
}
priv
->
fragment_pipe
->
fp_enable
(
context
,
FALSE
);
priv
->
fragment_pipe
->
fp_enable
(
context
,
FALSE
);
...
@@ -6634,7 +6630,6 @@ static void fragment_prog_arbfp(struct wined3d_context *context, const struct wi
...
@@ -6634,7 +6630,6 @@ static void fragment_prog_arbfp(struct wined3d_context *context, const struct wi
*/
*/
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
desc
->
shader
));
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
desc
->
shader
));
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, desc->shader)"
);
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, desc->shader)"
);
priv
->
current_fprogram_id
=
desc
->
shader
;
if
(
device
->
shader_backend
==
&
arb_program_shader_backend
&&
context
->
last_was_pshader
)
if
(
device
->
shader_backend
==
&
arb_program_shader_backend
&&
context
->
last_was_pshader
)
{
{
...
...
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