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
b60961ae
Commit
b60961ae
authored
May 10, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
May 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use surface_prepare_texture for surface allocation in read_from_framebuffer_texture.
parent
658209b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
surface.c
dlls/wined3d/surface.c
+1
-7
No files found.
dlls/wined3d/surface.c
View file @
b60961ae
...
...
@@ -1495,7 +1495,6 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
const
struct
wined3d_gl_info
*
gl_info
;
struct
wined3d_context
*
context
;
GLint
prevRead
;
BOOL
alloc_flag
=
srgb
?
SFLAG_SRGBALLOCATED
:
SFLAG_ALLOCATED
;
/* Activate the surface to read from. In some situations it isn't the currently active target(e.g. backbuffer
* locking during offscreen rendering). RESOURCELOAD is ok because glCopyTexSubImage2D isn't affected by any
...
...
@@ -1504,6 +1503,7 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
context
=
context_acquire
(
device
,
This
);
gl_info
=
context
->
gl_info
;
surface_prepare_texture
(
This
,
gl_info
,
srgb
);
surface_bind_and_dirtify
(
This
,
srgb
);
ENTER_GL
();
...
...
@@ -1536,12 +1536,6 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
LEAVE_GL
();
}
if
(
!
(
This
->
Flags
&
alloc_flag
))
{
surface_allocate_surface
(
This
,
gl_info
,
This
->
resource
.
format_desc
,
srgb
);
This
->
Flags
|=
alloc_flag
;
}
ENTER_GL
();
/* If !SrcIsUpsideDown we should flip the surface.
* This can be done using glCopyTexSubImage2D but this
...
...
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