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
7472d72e
Commit
7472d72e
authored
Jan 14, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Jan 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copyrect should flag destination texture as dirty, to force it to be
reloaded.
parent
bcb05fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
device.c
dlls/d3d8/device.c
+35
-3
No files found.
dlls/d3d8/device.c
View file @
7472d72e
...
...
@@ -1345,7 +1345,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateImageSurface(LPDIRECT3DDEVICE8 iface
HRESULT
WINAPI
IDirect3DDevice8Impl_CopyRects
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pSourceSurface
,
CONST
RECT
*
pSourceRectsArray
,
UINT
cRects
,
IDirect3DSurface8
*
pDestinationSurface
,
CONST
POINT
*
pDestPointsArray
)
{
HRESULT
rc
=
D3D_OK
;
HRESULT
rc
=
D3D_OK
;
void
*
texture
=
NULL
;
IDirect3DSurface8Impl
*
src
=
(
IDirect3DSurface8Impl
*
)
pSourceSurface
;
IDirect3DSurface8Impl
*
dst
=
(
IDirect3DSurface8Impl
*
)
pDestinationSurface
;
...
...
@@ -1359,9 +1361,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, IDirect
if
(
src
->
myDesc
.
Format
!=
dst
->
myDesc
.
Format
&&
(
dst
->
myDesc
.
Format
!=
D3DFMT_UNKNOWN
))
{
TRACE
(
"Formats do not match %x / %x
\n
"
,
src
->
myDesc
.
Format
,
dst
->
myDesc
.
Format
);
rc
=
D3DERR_INVALIDCALL
;
}
else
if
(
dst
->
myDesc
.
Format
==
D3DFMT_UNKNOWN
)
{
void
*
texture
=
NULL
;
}
else
if
(
dst
->
myDesc
.
Format
==
D3DFMT_UNKNOWN
)
{
TRACE
(
"Converting dest to same format as source, since dest was unknown
\n
"
);
dst
->
myDesc
.
Format
=
src
->
myDesc
.
Format
;
...
...
@@ -1424,6 +1425,37 @@ HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, IDirect
}
}
}
/* Set dirty */
if
(
rc
==
D3D_OK
)
{
IDirect3DSurface8Impl_GetContainer
((
LPDIRECT3DSURFACE8
)
dst
,
NULL
,
&
texture
);
/* FIXME: Which refid? */
if
(
texture
!=
NULL
)
{
switch
(
IDirect3DBaseTexture8Impl_GetType
((
LPDIRECT3DBASETEXTURE8
)
texture
))
{
case
D3DRTYPE_TEXTURE
:
{
IDirect3DTexture8Impl
*
pTexture
=
(
IDirect3DTexture8Impl
*
)
texture
;
pTexture
->
Dirty
=
TRUE
;
}
break
;
case
D3DRTYPE_VOLUMETEXTURE
:
{
IDirect3DVolumeTexture8Impl
*
pTexture
=
(
IDirect3DVolumeTexture8Impl
*
)
texture
;
pTexture
->
Dirty
=
TRUE
;
}
break
;
case
D3DRTYPE_CUBETEXTURE
:
{
IDirect3DCubeTexture8Impl
*
pTexture
=
(
IDirect3DCubeTexture8Impl
*
)
texture
;
pTexture
->
Dirty
=
TRUE
;
}
break
;
default:
FIXME
(
"Unhandled texture type
\n
"
);
}
}
}
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_UpdateTexture
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DBaseTexture8
*
pSourceTexture
,
IDirect3DBaseTexture8
*
pDestinationTexture
)
{
...
...
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