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
99981f26
Commit
99981f26
authored
Sep 17, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove some assumptions that PreLoad() will always bind the texture.
parent
53a79512
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
1 deletion
+4
-1
basetexture.c
dlls/wined3d/basetexture.c
+1
-1
device.c
dlls/wined3d/device.c
+1
-0
state.c
dlls/wined3d/state.c
+1
-0
surface.c
dlls/wined3d/surface.c
+1
-0
No files found.
dlls/wined3d/basetexture.c
View file @
99981f26
...
@@ -389,7 +389,7 @@ void WINAPI IWineD3DBaseTextureImpl_ApplyStateChanges(IWineD3DBaseTexture *iface
...
@@ -389,7 +389,7 @@ void WINAPI IWineD3DBaseTextureImpl_ApplyStateChanges(IWineD3DBaseTexture *iface
GLint
textureDimensions
=
IWineD3DBaseTexture_GetTextureDimensions
(
iface
);
GLint
textureDimensions
=
IWineD3DBaseTexture_GetTextureDimensions
(
iface
);
BOOL
cond_np2
=
IWineD3DBaseTexture_IsCondNP2
(
iface
);
BOOL
cond_np2
=
IWineD3DBaseTexture_IsCondNP2
(
iface
);
IWineD3DBaseTexture_PreLoad
(
iface
);
/* ApplyStateChanges relies on the correct texture being bound and loaded. */
if
(
samplerStates
[
WINED3DSAMP_ADDRESSU
]
!=
This
->
baseTexture
.
states
[
WINED3DTEXSTA_ADDRESSU
])
{
if
(
samplerStates
[
WINED3DSAMP_ADDRESSU
]
!=
This
->
baseTexture
.
states
[
WINED3DTEXSTA_ADDRESSU
])
{
state
=
samplerStates
[
WINED3DSAMP_ADDRESSU
];
state
=
samplerStates
[
WINED3DSAMP_ADDRESSU
];
...
...
dlls/wined3d/device.c
View file @
99981f26
...
@@ -5875,6 +5875,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
...
@@ -5875,6 +5875,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
/* Make sure the surface is loaded and up to date */
/* Make sure the surface is loaded and up to date */
IWineD3DSurface_PreLoad
(
pDestinationSurface
);
IWineD3DSurface_PreLoad
(
pDestinationSurface
);
IWineD3DSurface_BindTexture
(
pDestinationSurface
);
IWineD3DSurface_GetGlDesc
(
pDestinationSurface
,
&
glDescription
);
IWineD3DSurface_GetGlDesc
(
pDestinationSurface
,
&
glDescription
);
...
...
dlls/wined3d/state.c
View file @
99981f26
...
@@ -3487,6 +3487,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
...
@@ -3487,6 +3487,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
if
(
stateblock
->
textures
[
sampler
])
{
if
(
stateblock
->
textures
[
sampler
])
{
IWineD3DBaseTexture_PreLoad
(
stateblock
->
textures
[
sampler
]);
IWineD3DBaseTexture_PreLoad
(
stateblock
->
textures
[
sampler
]);
IWineD3DBaseTexture_BindTexture
(
stateblock
->
textures
[
sampler
]);
IWineD3DBaseTexture_ApplyStateChanges
(
stateblock
->
textures
[
sampler
],
stateblock
->
textureState
[
sampler
],
stateblock
->
samplerState
[
sampler
]);
IWineD3DBaseTexture_ApplyStateChanges
(
stateblock
->
textures
[
sampler
],
stateblock
->
textureState
[
sampler
],
stateblock
->
samplerState
[
sampler
]);
if
(
GL_SUPPORT
(
EXT_TEXTURE_LOD_BIAS
))
{
if
(
GL_SUPPORT
(
EXT_TEXTURE_LOD_BIAS
))
{
...
...
dlls/wined3d/surface.c
View file @
99981f26
...
@@ -2452,6 +2452,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SaveSnapshot(IWineD3DSurface *iface, const ch
...
@@ -2452,6 +2452,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SaveSnapshot(IWineD3DSurface *iface, const ch
}
else
{
/* bind the real texture, and make sure it up to date */
}
else
{
/* bind the real texture, and make sure it up to date */
IWineD3DSurface_PreLoad
(
iface
);
IWineD3DSurface_PreLoad
(
iface
);
surface_bind_and_dirtify
(
This
);
}
}
allocatedMemory
=
HeapAlloc
(
GetProcessHeap
(),
0
,
width
*
height
*
4
);
allocatedMemory
=
HeapAlloc
(
GetProcessHeap
(),
0
,
width
*
height
*
4
);
ENTER_GL
();
ENTER_GL
();
...
...
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