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
a9f91246
Commit
a9f91246
authored
May 29, 2009
by
Tobias Jakobi
Committed by
Alexandre Julliard
Jun 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Force NP2 fixup constant reloading in shader_glsl_select.
parent
ef7f769b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
a9f91246
...
...
@@ -4250,6 +4250,13 @@ static void shader_glsl_select(IWineD3DDevice *iface, BOOL usePS, BOOL useVS) {
if
(
program_id
)
TRACE
(
"Using GLSL program %u
\n
"
,
program_id
);
GL_EXTCALL
(
glUseProgramObjectARB
(
program_id
));
checkGLcall
(
"glUseProgramObjectARB"
);
/* In case that NP2 texcoord fixup data is found for the selected program, trigger a reload of the
* constants. This has to be done because it can't be guaranteed that sampler() (from state.c) is
* called between selecting the shader and using it, which results in wrong fixup for some frames. */
if
(
priv
->
glsl_program
&&
priv
->
glsl_program
->
np2Fixup_info
)
{
This
->
shader_backend
->
shader_load_np2fixup_constants
(
iface
,
usePS
,
useVS
);
}
}
/* GL locking is done by the caller */
...
...
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