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
69550f2c
Commit
69550f2c
authored
Oct 28, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make GetTexture and GetSamplerState read from the correct stateblock.
parent
a648d4e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/wined3d/device.c
+2
-2
No files found.
dlls/wined3d/device.c
View file @
69550f2c
...
...
@@ -4638,7 +4638,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetSamplerState(IWineD3DDevice *iface,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSamplerState
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
WINED3DSAMPLERSTATETYPE
Type
,
DWORD
*
Value
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** TODO: check that sampler is in range **/
*
Value
=
This
->
updateS
tateBlock
->
samplerState
[
Sampler
][
Type
];
*
Value
=
This
->
s
tateBlock
->
samplerState
[
Sampler
][
Type
];
TRACE
(
"(%p) : Sampler %d Type %u Returning %d
\n
"
,
This
,
Sampler
,
Type
,
*
Value
);
return
WINED3D_OK
;
...
...
@@ -5817,7 +5817,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetTexture(IWineD3DDevice *iface, DWORD
TRACE
(
"Attempt to access invalid texture rejected
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
*
ppTexture
=
This
->
updateS
tateBlock
->
textures
[
Stage
];
*
ppTexture
=
This
->
s
tateBlock
->
textures
[
Stage
];
if
(
*
ppTexture
)
IWineD3DBaseTexture_AddRef
(
*
ppTexture
);
...
...
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