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
bf113bd2
Commit
bf113bd2
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 read_from_framebuffer_texture().
parent
51438eec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
surface.c
dlls/wined3d/surface.c
+5
-6
No files found.
dlls/wined3d/surface.c
View file @
bf113bd2
...
...
@@ -1172,7 +1172,6 @@ static void read_from_framebuffer(IWineD3DSurfaceImpl *This, const RECT *rect, v
static
void
read_from_framebuffer_texture
(
IWineD3DSurfaceImpl
*
This
,
BOOL
srgb
)
{
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
device
;
IWineD3DSwapChainImpl
*
swapchain
;
struct
wined3d_context
*
context
;
int
bpp
;
GLenum
format
,
internal
,
type
;
...
...
@@ -1197,18 +1196,18 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
* There is no need to keep track of the current read buffer or reset it, every part of the code
* that reads sets the read buffer as desired.
*/
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)
))
if
(
!
surface_is_offscreen
((
IWineD3DSurface
*
)
This
))
{
GLenum
buffer
=
surface_get_gl_buffer
((
IWineD3DSurface
*
)
This
,
(
IWineD3DSwapChain
*
)
swapchain
);
GLenum
buffer
=
surface_get_gl_buffer
((
IWineD3DSurface
*
)
This
,
(
IWineD3DSwapChain
*
)
This
->
container
);
TRACE
(
"Locking %#x buffer
\n
"
,
buffer
);
ENTER_GL
();
glReadBuffer
(
buffer
);
checkGLcall
(
"glReadBuffer"
);
LEAVE_GL
();
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
}
else
{
}
else
{
/* Locking the primary render target which is not on a swapchain(=offscreen render target).
* Read from the back 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