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
3b822b80
Commit
3b822b80
authored
Aug 21, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reject opengl accelerated blits with system memory surfaces.
parent
0d749e8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
surface.c
dlls/wined3d/surface.c
+8
-0
No files found.
dlls/wined3d/surface.c
View file @
3b822b80
...
...
@@ -2805,9 +2805,17 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
TRACE
(
"(%p)->(%p,%p,%p,%08x,%p)
\n
"
,
This
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
);
/* Get the swapchain. One of the surfaces has to be a primary surface */
if
(
This
->
resource
.
pool
==
WINED3DPOOL_SYSTEMMEM
)
{
WARN
(
"Destination is in sysmem, rejecting gl blt
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
IWineD3DSurface_GetContainer
(
(
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
dstSwapchain
);
if
(
dstSwapchain
)
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
dstSwapchain
);
if
(
Src
)
{
if
(
Src
->
resource
.
pool
==
WINED3DPOOL_SYSTEMMEM
)
{
WARN
(
"Src is in sysmem, rejecting gl blt
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
IWineD3DSurface_GetContainer
(
(
IWineD3DSurface
*
)
Src
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
srcSwapchain
);
if
(
srcSwapchain
)
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
srcSwapchain
);
}
...
...
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