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
00a4b85f
Commit
00a4b85f
authored
Jan 12, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Update the pixelshader when the texture type changes.
parent
2ca9f2c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
device.c
dlls/wined3d/device.c
+7
-0
No files found.
dlls/wined3d/device.c
View file @
00a4b85f
...
...
@@ -4578,8 +4578,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD
if
(
NULL
!=
This
->
updateStateBlock
->
textures
[
Stage
])
{
IWineD3DBaseTextureImpl
*
new
=
(
IWineD3DBaseTextureImpl
*
)
This
->
updateStateBlock
->
textures
[
Stage
];
ULONG
bindCount
=
InterlockedIncrement
(
&
new
->
baseTexture
.
bindCount
);
UINT
dimensions
=
IWineD3DBaseTexture_GetTextureDimensions
(
pTexture
);
IWineD3DBaseTexture_AddRef
(
This
->
updateStateBlock
->
textures
[
Stage
]);
if
(
!
oldTexture
||
dimensions
!=
IWineD3DBaseTexture_GetTextureDimensions
(
oldTexture
))
{
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_PIXELSHADER
);
}
if
(
oldTexture
==
NULL
&&
Stage
<
MAX_TEXTURES
)
{
/* The source arguments for color and alpha ops have different meanings when a NULL texture is bound,
* so the COLOROP and ALPHAOP have to be dirtified.
...
...
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