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
24ee003b
Commit
24ee003b
authored
Nov 03, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass surface dirtification to the container.
parent
4454096d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
surface.c
dlls/wined3d/surface.c
+15
-0
No files found.
dlls/wined3d/surface.c
View file @
24ee003b
...
...
@@ -3439,6 +3439,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
static
void
WINAPI
IWineD3DSurfaceImpl_ModifyLocation
(
IWineD3DSurface
*
iface
,
DWORD
flag
,
BOOL
persistent
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DBaseTexture
*
texture
;
TRACE
(
"(%p)->(%s, %s)
\n
"
,
iface
,
flag
==
SFLAG_INSYSMEM
?
"SFLAG_INSYSMEM"
:
flag
==
SFLAG_INDRAWABLE
?
"SFLAG_INDRAWABLE"
:
"SFLAG_INTEXTURE"
,
...
...
@@ -3446,9 +3447,23 @@ static void WINAPI IWineD3DSurfaceImpl_ModifyLocation(IWineD3DSurface *iface, DW
/* TODO: For offscreen textures with fbo offscreen rendering the drawable is the same as the texture.*/
if
(
persistent
)
{
if
((
This
->
Flags
&
SFLAG_INTEXTURE
)
&&
!
(
flag
&
SFLAG_INTEXTURE
))
{
if
(
IWineD3DSurface_GetContainer
(
iface
,
&
IID_IWineD3DBaseTexture
,
(
void
**
)
&
texture
)
==
WINED3D_OK
)
{
TRACE
(
"Passing to container
\n
"
);
IWineD3DBaseTexture_SetDirty
(
texture
,
TRUE
);
IWineD3DBaseTexture_Release
(
texture
);
}
}
This
->
Flags
&=
~
SFLAG_LOCATIONS
;
This
->
Flags
|=
flag
;
}
else
{
if
((
This
->
Flags
&
SFLAG_INTEXTURE
)
&&
(
flag
&
SFLAG_INTEXTURE
))
{
if
(
IWineD3DSurface_GetContainer
(
iface
,
&
IID_IWineD3DBaseTexture
,
(
void
**
)
&
texture
)
==
WINED3D_OK
)
{
TRACE
(
"Passing to container
\n
"
);
IWineD3DBaseTexture_SetDirty
(
texture
,
TRUE
);
IWineD3DBaseTexture_Release
(
texture
);
}
}
This
->
Flags
&=
~
flag
;
}
}
...
...
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