Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
97f04248
Commit
97f04248
authored
Dec 15, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use surface_is_offscreen() in flush_to_framebuffer_drawpixels().
parent
bf113bd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
surface.c
dlls/wined3d/surface.c
+3
-4
No files found.
dlls/wined3d/surface.c
View file @
97f04248
...
...
@@ -1425,16 +1425,15 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *This, GLenum fm
GLint
skipBytes
=
0
;
UINT
pitch
=
IWineD3DSurface_GetPitch
((
IWineD3DSurface
*
)
This
);
/* target is argb, 4 byte */
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
device
;
IWineD3DSwapChainImpl
*
swapchain
;
struct
wined3d_context
*
context
;
/* Activate the correct context for the render target */
context
=
context_acquire
(
myDevice
,
(
IWineD3DSurface
*
)
This
,
CTXUSAGE_BLIT
);
ENTER_GL
();
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)))
{
GLenum
buffer
=
surface_get_gl_buffer
((
IWineD3DSurface
*
)
This
,
(
IWineD3DSwapChain
*
)
swapchain
);
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
if
(
!
surface_is_offscreen
((
IWineD3DSurface
*
)
This
))
{
GLenum
buffer
=
surface_get_gl_buffer
((
IWineD3DSurface
*
)
This
,
(
IWineD3DSwapChain
*
)
This
->
container
);
TRACE
(
"Unlocking %#x buffer.
\n
"
,
buffer
);
context_set_draw_buffer
(
context
,
buffer
);
}
...
...
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