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
dc2f3538
Commit
dc2f3538
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_vprogram_id" field from struct shader_arb_priv.
This has been unused since
1bd56b6c
.
parent
95197f62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-7
No files found.
dlls/wined3d/arb_program_shader.c
View file @
dc2f3538
...
...
@@ -269,7 +269,6 @@ struct arb_vshader_private {
struct
shader_arb_priv
{
GLuint
current_vprogram_id
;
const
struct
arb_ps_compiled_shader
*
compiled_fprog
;
const
struct
arb_vs_compiled_shader
*
compiled_vprog
;
BOOL
use_arbfp_fixed_func
;
...
...
@@ -4656,19 +4655,18 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
compiled
=
find_arb_vshader
(
vs
,
gl_info
,
context
->
stream_info
.
use_map
,
&
compile_args
,
ps_input_sig
);
priv
->
current_vprogram_id
=
compiled
->
prgId
;
priv
->
compiled_vprog
=
compiled
;
/* Bind the vertex program */
GL_EXTCALL
(
glBindProgramARB
(
GL_VERTEX_PROGRAM_ARB
,
priv
->
current_vprogram_i
d
));
checkGLcall
(
"glBindProgramARB(GL_VERTEX_PROGRAM_ARB,
priv->current_vprogram_i
d);"
);
GL_EXTCALL
(
glBindProgramARB
(
GL_VERTEX_PROGRAM_ARB
,
compiled
->
prgI
d
));
checkGLcall
(
"glBindProgramARB(GL_VERTEX_PROGRAM_ARB,
compiled->prgI
d);"
);
priv
->
vertex_pipe
->
vp_enable
(
context
,
FALSE
);
/* Enable OpenGL vertex programs */
gl_info
->
gl_ops
.
gl
.
p_glEnable
(
GL_VERTEX_PROGRAM_ARB
);
checkGLcall
(
"glEnable(GL_VERTEX_PROGRAM_ARB);"
);
TRACE
(
"Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB
\n
"
,
priv
->
current_vprogram_i
d
);
TRACE
(
"Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB
\n
"
,
compiled
->
prgI
d
);
shader_arb_vs_local_constants
(
compiled
,
context_gl
,
state
);
if
(
priv
->
last_vs_color_unclamp
!=
compiled
->
need_color_unclamp
)
{
...
...
@@ -4690,7 +4688,6 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
{
if
(
gl_info
->
supported
[
ARB_VERTEX_PROGRAM
])
{
priv
->
current_vprogram_id
=
0
;
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_VERTEX_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_PROGRAM_ARB)"
);
}
...
...
@@ -4720,7 +4717,6 @@ static void shader_arb_disable(void *shader_priv, struct wined3d_context *contex
if
(
gl_info
->
supported
[
ARB_VERTEX_PROGRAM
])
{
priv
->
current_vprogram_id
=
0
;
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_VERTEX_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_PROGRAM_ARB)"
);
}
...
...
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