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
05c4d0a8
Commit
05c4d0a8
authored
Jul 01, 2009
by
Tobias Jakobi
Committed by
Alexandre Julliard
Jul 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix comments about NP2 fixup.
parent
0caebe5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
state.c
dlls/wined3d/state.c
+3
-4
No files found.
dlls/wined3d/state.c
View file @
05c4d0a8
...
...
@@ -3035,8 +3035,8 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W
if
(
generated
)
{
FIXME
(
"Non-power2 texture being used with generated texture coords
\n
"
);
}
/* NP2 texcoord fixup is implemented for pixelshaders
(currently only in GLSL backend) so
only enable the
fixed-function-pipeline fixup via pow2Matrix when no PS is used. */
/* NP2 texcoord fixup is implemented for pixelshaders
so only enable the
fixed-function-pipeline fixup via pow2Matrix when no PS is used. */
if
(
!
use_ps
(
stateblock
))
{
TRACE
(
"Non power two matrix multiply fixup
\n
"
);
glMultMatrixf
(((
IWineD3DTextureImpl
*
)
stateblock
->
textures
[
texUnit
])
->
baseTexture
.
pow2Matrix
);
...
...
@@ -3379,8 +3379,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
}
}
/* Trigger shader constant reloading (for NP2 texcoord fixup)
* Only do this if pshaders are used (note: fixup is currently only implemented in GLSL). */
/* Trigger shader constant reloading (for NP2 texcoord fixup) */
if
(
!
tex_impl
->
baseTexture
.
pow2Matrix_identity
)
{
IWineD3DDeviceImpl
*
d3ddevice
=
stateblock
->
wineD3DDevice
;
d3ddevice
->
shader_backend
->
shader_load_np2fixup_constants
(
...
...
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